oprofile

What profiler should I use to measure _real_ time (including waiting for syscalls) spend in this function, not _CPU_ one

做~自己de王妃 提交于 2019-12-01 21:22:53
The application does not calculate things, but does i/o, read files, uses network. I want profiler to show it. I expect something like something like in callgrind that calls clock_gettime each proble. Or like oprofile that interrupts my application (while it is sleeping or waiting for socket/file/whatever) to see what is it doing. I want things like "read", "connect", "nanosleep", "send" and especially "fsync" ( And all their callers ) to be bold (not things like string or number functions that perform calculations). Platform: GNU/Linux @ i386 Quickly hacked up trivial sampling profiler for

Linux time sample based profiler

老子叫甜甜 提交于 2019-11-30 05:17:24
short version: Is there a good time based sampling profiler for Linux? long version: I generally use OProfile to optimize my applications. I recently found a shortcoming that has me wondering. The problem was a tight loop, spawning c++filt to demangle a c++ name. I only stumbled upon the code by accident while chasing down another bottleneck. The OProfile didn't show anything unusual about the code so I almost ignored it but my code sense told me to optimize the call and see what happened. I changed the popen of c++filt to abi::__cxa_demangle . The runtime went from more than a minute to a

Linux time sample based profiler

点点圈 提交于 2019-11-29 03:39:38
问题 short version: Is there a good time based sampling profiler for Linux? long version: I generally use OProfile to optimize my applications. I recently found a shortcoming that has me wondering. The problem was a tight loop, spawning c++filt to demangle a c++ name. I only stumbled upon the code by accident while chasing down another bottleneck. The OProfile didn't show anything unusual about the code so I almost ignored it but my code sense told me to optimize the call and see what happened. I