tikv / pprof-rs

A Rust CPU profiler implemented with the help of backtrace-rs
Apache License 2.0
1.3k stars 99 forks source link

Generated flamegraph is meaningless #135

Closed bruwozniak closed 4 months ago

bruwozniak commented 2 years ago

Hi, I am generating a flamegraph of a production build (with debug symbols) of a Tokio-based app running on Linux. The guard is created on main tokio fn and later moved to background thread to periodically dump the flamegraphs. Unfortunately the output of the graph is rather trivial, see: flamegraph Interestingly, the exact same code on macOS seems to produce more reasonable output. Is there something I'm doing wrong? Thanks so much for any help.

cloutiertyler commented 2 years ago

@bruwozniak I am also seeing the same thing. Is this running in Docker by any chance?

breezewish commented 1 year ago

It should be related with https://github.com/tikv/pprof-rs/issues/157. Could you try again with 0.11.0 release?

TomAFrench commented 4 months ago

I was getting very similar flamegraphs to the above and removing the frame-pointer feature fixed this, so this issue can likely be closed as resolved by #172 .

breezewish commented 4 months ago

@TomAFrench Thanks for the feedback!