Mail Archives: djgpp/1998/11/10/13:47:41.1
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
- Raw text -