Tuesday, 10 July 2012

Oprofile trauma on F17

Basics of using oprofile - and why fedora libraries give you no symbols

Whilst trying to profile an application, everything I did failed to give me a breakdown inside the library calls. The basic process was

sudo optcontrol --reset
sudo optcontrol --start
sudo optcontrol --dump
opreport --symbols


This failed to read symbols from system libraries. Realisation that I might need some debug symbols dawned, so added


sudo yum --enablerepo=fedora-debuginfo install SDL-debuginfo


So symbols are now available, but still not working. Finally, I blundered into this

https://bugzilla.redhat.com/show_bug.cgi?id=746823

sudo prelink -u --all


Finally, I can see where all the time goes!

No comments:

Post a Comment