www.delorie.com/djgpp/faq/profiling/all-zero.html   search  
I compile my program with -pg, but when I call gprof, it produces a report with all zeros.

Most probably, you run in DPMI mode (like in Windows DOS box, or under QDPMI ). Profile timing currently doesn't work in DPMI mode. If you don't run under Windows, put nodpmi into your GO32 environment variable to make profiling work (under Windows, DPMI is the only way to run djgpp).

Note that you will still get the call count portion of the report.

  prev     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)