Sysprof is a profiling tool that helps in finding the functions in which a program uses most of its time
/ideas - Ideas for future improvements to sysprof.
Sysprof can be found in many recent distibutions or obtained from GNOME Git, inside the sysprof module:
git clone git://git.gnome.org/sysprof
You need to compile it using the kernel headers package provided by your distribution. Read then the Sysprof quickstart to set it up.
Examples of use