Hacker News new | past | comments | ask | show | jobs | submit login
Doom GPU Flame Graphs (brendangregg.com)
28 points by LorenDB 16 hours ago | hide | past | favorite | 9 comments





This was an interesting read, along with the companion article about the early development from last year [0].

I feel like this is a very interesting development, but I can't quite put my finger on why. It's also interesting to compare with previous comments about Nvidia have much less available [1]. I wonder if tooling like this (along with Brendan and his team) could prove to be a competitive advantage for Intel?

[0] https://www.brendangregg.com/blog/2024-10-29/ai-flame-graphs... [1] https://news.ycombinator.com/item?id=41994469


From your zeroth link,

>A flame graph is a visualization I invented in 2011 for showing sampled code stack traces.

Another day, another lie on the internet.

I though Gregg was cool.


Flame graph, as in a display of sampled call stacks growing upward organized per level to aggregate like call stacks, is almost certainly their invention.

Why they chose that over the much more common visualization of downward call stacks that has been standard for decades is a mystery. That is the form most commonly used to display call stacks in trace visualizers since at least the early 2000s (though likely earlier).


The answer has always been in the source of flamegraph.pl:

  # This was inspired by Neelakanth Nadgir's excellent function_call_graph.rb
  # program, which visualized function entry and return trace events.  As Neel
  # wrote: "The output displayed is inspired by Roch's CallStackAnalyzer which
  # was in turn inspired by the work on vftrace by Jan Boerhout". 
Neel's did upward "flames" and I think CallStackAnalyzer did as well from memory, so based on the ones I was familiar with this was the precedent. We were also dealing with stacks that were commonly less than 30 frames deep, so it tended to fit on the screen. Also in my original flamegraph.pl implementation was an option to invert the flame graph (--inverted), so I've always let people choose. But I guess I had to pick something as the default.

Neel's was the biggest direct inspiration. I changed it to put the alphabet on the x-axis and reduced the color hues, but they look similar.



Nice tool. Looks like it uses what we now call a "flame chart" (not a flame graph). I don't know if it ever had an original name, but I've seen these in tools from at least the 1990's.

Who is the real inventor in your opinion?

tbh I find magic trace to be more useful https://github.com/janestreet/magic-trace

No, this samples the GPU as well. That's the novelty.



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: