Mail Archives: djgpp/1994/11/18/09:22:59
> Is it possible to achieve profiling with djgpp?
Compile with -pg, then invoke gprof:
gprof <your-program>
Note that currently, profiling doesn't work in DPMI mode
(well, actually it ``works'', but the histogram is returned
all zeroes :-(), so you better not run under Windows when
profiling. Also, the profile only sees the parts of program
which run in protected mode, so if your program spends
significant portion of its time in DOS I/O, you will get
a very distorted view of your hot spots.
- Raw text -