[lug] Program timing
Zan Lynx
zlynx at acm.org
Tue Sep 9 09:25:44 MDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stephen Queen wrote:
> I'm sure I've seen this discussed on this list before, I just don't
> seem to be able to find it in the archives.
> I'm looking for a program that can display the timing of various
> functions in a user space program. Does anyone have a recommendation
> or suggestion?
>
> Thanks,
> Steve
gprof was already suggested, but if you don't want to recompile, you can
try using OProfile. It's included in many Linux distros, which is good
because it requires a kernel module because it uses dedicated CPU
profiling counters.
I like OProfile. I recommend using the graphical program oprof_start.
Afterward you get text console output using opreport.
You will certainly want to read the documentation
(/usr/share/doc/oprofile-0.9.1/oprofile.html on an old Fedora 5 box here).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjGlXgACgkQolqWs/Y4NLzlEwCfZbqFDI0nLicq8LGmkCdjJElM
n4MAoItl4Dm/vdmNHXMoHoDClgya3i7l
=+Hqa
-----END PGP SIGNATURE-----
More information about the LUG
mailing list