by gpderetta <spamtrap@[EMAIL PROTECTED]
>
Mar 21, 2008 at 12:30 PM
On Mar 20, 10:08 am, Noob <r...@[EMAIL PROTECTED]
> wrote:
> LinuxAsm wrote:
> > Does anyone know of a good code profiler for Linux?
>
> I recommend oprofile over gprof.
>
> http://oprofile.sourceforge.net/about/
Valgrind is extremely good for doing both source level
and assembler level profiling (you get execution count
for every single instruction!).
It also does cache (both data and instruction) and memory
allocation profiling.
Kcachegrind is the perfect companion for examining and
navigating valgrind output.
The downside of valgrind is that your program will run very
slowly (even 30x) when profiling. But I have found it incomparably
more useful than gprof. I have no experience with oprofile.
One may also want to look at google's
tcmalloc library for memory allocation profiling.
HTH,
--
gpd