flamegraph
flamegraph copied to clipboard
Detaching from programs
I encountered an issue, that current implementation doesn't make an svg file (only perf.data) for programs that are finished with non zero status. My case is the following: I'm trying to sample a program, that never ends by itself (e.g only by kill, without gracious shutdown). Though, perf.data itself is ok, and stackcollapse-perf.pl && flamegraph.pl produce expected result. I think as a quick workaround for that problem might be just skipping exiting at the point above, and just leave a warning/error; and for a proper solution it's better to detach from a program being traced (I guess that possible, right?)