Question

How to use perf to examine which parts of code run slowly? I came about these Links but still I could not understand the data generated which is something like this!So how do i understand the reports of perf and data generated by perf annotate?picture

Was it helpful?

Solution

This Tutorial may help. As osgf said, you want to look for the "hottest" functions and instructions, that are where your program spent most of the time. Then think on how you can improve those areas. Make sure you have debug symbols so perf report gives you a more understandable output.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top