Message-ID: <005001be0d0f$befd62a0$c5223182@marst96.m.resnet.pitt.edu> From: "mark reed" To: Subject: Re: Need to "profile" program's execution Date: Tue, 10 Nov 1998 20:08:08 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com read the faq, theres something like gprof.exe in the djgpp/bin directory, but i think you have to compile your source with some flag before using it. -----Original Message----- From: Claudio Andre Heckler To: djgpp AT delorie DOT com Date: Tuesday, November 10, 1998 3:00 PM Subject: Need to "profile" program's execution >Hi guys ! I'm really new on this subject, so any clues and >pointers will be very usefull ! > > Question: I have a program, say like the one at the bottom, >and want to execute under some sort of trace utility, that can >report-me things like the time (% or ticks) spent in the key-points >of the program. > > Example - supose I have this: > >/*--------- code starts here -------------*/ >void fooA(void) { > int x=1; > x++; >} > >void fooB(void) { > double x=1.0; > x++; >} > >int main(){ > for (int i=0; i<500; i++){ > fooA(); > fooB(); > } > return 0; >} >/*--------- code ends here -------------*/ > > A good report for me will be something like: > > Results after executing FOO.EXE: > 70% time spent executing fooA() code > 29% time spent executing fooA() code > 1% time spent executing main() code > > Well, where I should look for something like this ? ;) > > > Claudio A. Heckler >