www.delorie.com/djgpp/faq/profiling/basic.html   search  
How can I profile my program to see where it spends most of its run time?

DJGPP includes a profiling facility. To use it, compile and link with -pg, run your program as you usually would, then run a program called gprof:

  gprof myprog
It will print an execution profile.

  next     webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 1995   by DJ Delorie     Updated Feb 1995  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)