flamegraph-rs / flamegraph

Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can you place performance marks/waypoints in code that are visible in the output?

alshdavid opened this issue · comments

I'm trying to identify what is happening between two points - is there a way/what is the best way to mark the start/end points in code such that they are visible on the flamechart?

flamegraph/cargo flamegraph are mostly wrappers around perf (on Linux) and there is some support for dtrace on macOS. If you want, you can supply your own perf command invocation or render the flamegraph using the data supplied from a pre-run perf run. I'd look for generic advice on doing what you need with perf and working from there.