YS-L / flamelens

Flamegraph viewer in the terminal
MIT License
240 stars 2 forks source link

Error while reading data from cargo-flamegraph #2

Closed Paulo-21 closed 2 months ago

Paulo-21 commented 2 months ago

Hello, I love your project I encountered an error when i would like to visualize the data generate by cargo-flamegraph image Any idea ?

YS-L commented 2 months ago

Hi! perf.data is the profiling data generated by perf, but currently the supported input format for flamelens is collapsed stack data. It can be obtained this way using a tool from the inferno crate:

perf script -i perf.data | inferno-collapse-perf | flamelens
Paulo-21 commented 2 months ago

It work perfectly for me, it would be nice to link this issue in the readme like "If you use cargo-flamegraph basicly you can check this " ?