jonhoo / inferno

A Rust port of FlameGraph
Other
1.64k stars 117 forks source link

Support for collapsing source lines from -F+srcline in `perf script` outputs #277

Open harperj opened 1 year ago

harperj commented 1 year ago

This is something stackcollapse-perf.pl has supported for a while now (https://github.com/brendangregg/FlameGraph/blob/master/stackcollapse-perf.pl#L415). For some use cases this makes the resulting flame graph much more useful since it ties elements back to lines in the source code.

jonhoo commented 1 year ago

Seems like a reasonable thing to add! It's not something I personally have the time to implement at the moment, but would be happy to review a PR :+1: