Re: C++ runtime profiling

"Russ Cox" <rsc@swtch.com>
Mon, 25 Jun 2007 12:47:32 -0400

          From comp.compilers

Related articles
C++ runtime profiling emailamit@gmail.com (Amit Gupta) (2007-06-22)
Re: C++ runtime profiling dmaze@mit.edu (David Z Maze) (2007-06-25)
Re: C++ runtime profiling rsc@swtch.com (Russ Cox) (2007-06-25)
Re: C++ runtime profiling reganrussell@optusnet.com.au (regan) (2007-09-04)
C++ runtime profiling mikedunlavey44@gmail.com (Michael Dunlavey) (2012-01-13)
| List of all articles for this month |

From: "Russ Cox" <rsc@swtch.com>
Newsgroups: comp.compilers
Date: Mon, 25 Jun 2007 12:47:32 -0400
Organization: Compilers Central
References: 07-06-058
Keywords: C++, testing

> I wonder if there are other good open-source runtime profilers for C++
> What other tools are out there?


If you're doing a lot of system calls and have a lot of
processes interacting, use oprofile, as mentioned.


For standalone programs, try the Google perftools
profiler [1]. It does statistical sampling at run-time,
and produces very nice summary images showing
not only what the hot spots are but the stack traces
that led to them. It can also list your source code
with annotations showing which lines or assembly
instructions were the hot spots.


And the same interface works for profiling memory
allocation.


Russ


[1] http://code.google.com/p/google-perftools/wiki/GooglePerformanceTools



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.