jlfwong / speedscope

🔬 A fast, interactive web-based viewer for performance profiles.
https://www.speedscope.app
MIT License
5.59k stars 246 forks source link

Not support non-systemwide perf result #452

Open Molin-L opened 11 months ago

Molin-L commented 11 months ago

In the document, it gives an example of command, which works great:

perf record -a -F 999 -g ./my_program > perf.data

But in most case, I don't have sudo privilege, which means I cannot use -a to perf systemwide events. Also the size of systemwide result is really large. Currently speedscope doesn't support this kind of format. Do you have any plans on this? Thanks!

jlfwong commented 11 months ago

Hey @Molin-L, do you have an example of a profile generated by perf that speedscope won't import? I'm not deeply familiar with the various formats output by perf, so it's totally possible this is accidentally broken

birojnayak commented 10 months ago

@jlfwong I followed the command here https://github.com/jlfwong/speedscope/wiki/Importing-from-perf-(linux) , got the txt file, but speedscope complaining about "format not supported" .

jlfwong commented 10 months ago

@birojnayak Can you please provide the resulting file that doesn't import? I suspect there's some variation in versions of system dependencies here