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.

  webmaster     delorie software   privacy  
  Copyright © 1995     Updated Feb 1995