Is there a way to find performance of individual functions in a process using perf tool?
问题 I am trying to get performance of individual functions within a process. How can I do it using perf tool? Is there any other tool for this? For example, let's say, main function calls functions A , B , C . I want to get performance of main function as well as functions A,B,C individually . Is there a good document for understating perf source code? Thank you. 回答1: What you want to do is user-land probing. Perf can only do part of it. Try sudo perf top -p [pid] and then watch the scoreboard.