Mail Archives: djgpp/1996/12/16/10:46:13
On Thu, 12 Dec 1996, John M. Aldrich wrote:
> Profiling ALWAYS makes your program run slower - there's a tremendous
> amount of overhead involved in detecting each and every function call
> and storing the data. It doesn't matter whether it's on v2.00 or v2.01.
AFAIK, this is plain wrong. Profiling in DJGPP works by hooking the
timer interrupt and recording the profilee CS:EIP. The only overhead
this incurs is the additional mode switch when the timer ticks, which
ain't much at 18 tics/sec. All the other processing (computing the
function from the EIP) happens off-line, when `gprof' processes the file
written by the profiled program.
- Raw text -