www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/18/09:22:59

To: morphine AT whatever DOT cs DOT jhu DOT edu (Michael Phelps)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Profiling
Date: Fri, 18 Nov 94 11:50:00 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>

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


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019