Re: Loop profiling
- From: Randy Howard <randyhoward@xxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Mar 2007 00:34:57 GMT
On Tue, 27 Mar 2007 07:52:19 -0500, Christian Christmann wrote
(in article <pan.2007.03.27.12.52.19.246527@xxxxxxxx>):
On Tue, 27 Mar 2007 05:28:19 -0700, Ed Prochak wrote:
Have you tried gprof? It's manpage includes the description:
The annotated source listing is a copy of the program's source
code,
labeled with the number of times each line of the program was
executed.
Yes, but you get the sum of executions. From this you cannot deduce the
the single loop iterations, e.g. what was the minimal/maximal number of
iterations for a given loop.
I suspect you're going to have to instrument it yourself, but with
something more friendly to your goal than printf statements.
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw
.
- Follow-Ups:
- Re: Loop profiling
- From: Christian Christmann
- Re: Loop profiling
- References:
- Loop profiling
- From: Christian Christmann
- Re: Loop profiling
- From: Ed Prochak
- Re: Loop profiling
- From: Christian Christmann
- Loop profiling
- Prev by Date: Re: Somewhat OT: Problem with make at work.
- Next by Date: Re: Float significant figures.
- Previous by thread: Re: Loop profiling
- Next by thread: Re: Loop profiling
- Index(es):