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 next   webmaster     delorie software   privacy  
  Copyright © 1995     Updated Feb 1995