How do one visualize gprof profiling data as a flamegraph?

1.4k Views Asked by At

I've profiled a C++ application using GNU gprof. It would be really nice to visualize the data and for that purpose I found a python utility gprof2dot, which creates a graph from the gprof data, nice! But, ultimately I'd like to visualize the data as a flamegraph, popularized by Brendan Gregg. However, to my big surprise, I've not been able to find a tool to convert the gprof data into a format that flamegraph understands!?
Is anyone aware of such a utility? Or know how to do a workaround?

1

There are 1 best solutions below

0
On

gprof doesn't collect random stack samples, which is what flamegraphs display. And here's what you might learn if you try flamegraphs.