www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/16/21:49:04

Date: Tue, 16 Aug 1994 17:57:58 -0400 (EDT)
From: Kimberley Burchett <OKRA AT max DOT tiac DOT net>
Subject: profiling more stuff
To: DJGPP Mailing List <djgpp AT sun DOT soe DOT clarkson DOT edu>

  I really like the gprof profiler - gives me lots of information... but 
is there some way for it to give me a little _more_ information?  Like 
suppose I have a function like this:

void foo() {
  int counter;
  for (counter=0; counter<100000; counter++) {
   /* do one thing that I want timed */
   /* do another thing that I don't want timed */
  }
}

  Is there some way I could insert a label or something so I could find
out how much time the first part of the loop takes w/o figuring in the
time in the second loop?  Do I have to break it up into separate
functions?
							Kim

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019