...
Panel |
---|
// profile the code for 60 seconds bcall@snowball trafficserver$ sudo opcontrol -s; sleep 60; sudo opcontrol -t Profiler running. Stopping profiling. |
Running a basic report will tell you what functions are showing up in the sampled profile
Panel |
---|
bcall@snowball trafficserver$ opreport --symbols proxy/traffic_server | head CPU: Core 2, speed 2003 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000 samples % image name app name symbol name 39820 18.0383 traffic_server traffic_server _fini 5080 2.3012 libc-2.11.1.so traffic_server memcpy 4235 1.9184 traffic_server traffic_server ink_freelist_new 3280 1.4858 libpthread-2.11.1.so traffic_server pthread_mutex_trylock 2992 1.3554 traffic_server traffic_server do_strings_match_strongly(char const*, int, char const*, int) 2903 1.3151 traffic_server traffic_server ink_freelist_free 2712 1.2285 traffic_server traffic_server CacheContinuation::remoteOpEvent(int, Event*) |
Google profiler
...