I am maintaining a kernel module on linux 2.6.18 (RHEL 5.5) kernel and we are seeing some performance issues.
I am trying to use oprofile for general profiling but it does not provide (or I do not know the option) statistics regarding how many times a function was called or how much time it took to execute a particular function. I can write my own code for measur开发者_运维知识库ing time taken in executing each function but it would be difficult to insert this into each function.
Is there a profiler that can accomplish this?
Try also using the latest flamegraphs.
精彩评论