Re: Loop profiling



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





.