jonhoo / inferno

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

graph diffs from perl flamegraph #318

Closed Orca-bit closed 1 month ago

Orca-bit commented 2 months ago

I use the same perf.data

  1. when using perl flamegraph, the total samples shows 295730188910
  2. when using rs flamegraph, the total samples shows 36277
  3. when using perf report, it shows Samples: 36K of event cycles, Event count: 295730188910

that makes graphes look diff results with perl flamegraph is more closely match the percentages shown in perf report

flamegraph-rs/flamegraph#328

Orca-bit commented 2 months ago

brendangregg/FlameGraph#165

jonhoo commented 1 month ago

Fixed in https://github.com/jonhoo/inferno/pull/319 (thanks!)

jonhoo commented 1 month ago

Released in 0.11.20 (#324) :tada: