News for hackers. Stuff that matters.
Re:Doom GPU Flame Graphs by benpoulson on Saturday May 03, 2025 @05:33AM (#43877893)
What’s your preferred way of visualising performance?
Re:Doom GPU Flame Graphs by saagarjha on Saturday May 03, 2025 @06:16AM (#43878040)
Depends but if it's samples I'd usually reach for a hierarchical outline view. If it's time series data then probably a bunch of tracks.
Re:Doom GPU Flame Graphs by badsectoracula on Saturday May 03, 2025 @08:21AM (#43878572)
Flamegraphs are neat but the call graph in Luke Stackwalker[0] was more immediately obvious to me (especially since it draws a thick red line for the hottest path) than them.

Another approach is one i used for a profiler i wrote some time ago (and want to port to Linux at some point)[1] which displays the hottest "traces" (i.e. callstacks). One neat aspect of this is that you can merge multiple traces using a single function as the "head" (so, e.g., if there are two separate traces that contain a function "Foo" somewhere, you can select to use "Foo" as the starting point and they'll be treated as the same trace with their hitcounts combined).

[0] https://lukestackwalker.sourceforge.net/

[1] http://runtimeterror.com/tools/fpwprof/index.html