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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top