Friday, June 27, 2008

Oprofile run

So, oprofile is setup correctly now run it:
sudo opcontrol --start
sudo opcontrol --reset
... do your stuff here
sudo opcontrol --stop
opreport -l ~/build/lib/* ~/.gstreamer-0.10/plugins/* ~/build/lib/gstreamer-0.10/* -t 5

So opreport will dump it with all the symbols (-l) and with a minimum % of 5 (-t 5). you need to add a list with all the interesting libraries.
Result then is something like this:
CPU: PIII, speed 1862 MHz (estimated)
Counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 0x00 (No unit mask) count 100000
samples % app name symbol name
48443 58.7865 gst_deinterlace_transform_ip
10351 12.5611 yuv420p_to_rgb32

So, now you know where the CPU eathers are :-)

No comments: