www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/08/02:02:28

Date: Thu, 08 Mar 2001 09:02:38 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-Id: <7263-Thu08Mar2001090237+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
In-reply-to: <3aa6b9b7.800087@news.redshift.com> (damon@WRONG.redshift.com)
Subject: Re: GPROF reports zero time spent?
References: <3aa69f21 DOT 386105 AT news DOT redshift DOT com> <9867vf$9ts$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <3aa6b9b7 DOT 800087 AT news DOT redshift DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: damon AT WRONG DOT redshift DOT com (Damon Casale)
> Newsgroups: comp.os.msdos.djgpp
> Date: Wed, 07 Mar 2001 22:54:18 GMT
> >
> >> Each sample counts as 0.0555556 seconds.
> >>   %   cumulative   self              self     total           
> >>  time   seconds   seconds    calls  Ts/call  Ts/call  name    
> >> 100.00    424.17   424.17                             __dpmi_int
> >
> >See the FAQ. In a nutshell: either you've hit a gprof bug, or your
> >program is completely bottlenecked by I/O operations.
> 
> Hmm.  Apparently, I already have DJGPP v2.03.

Are you sure?  The above output surely look amazingly similar to the
problem with v2.02 library described in the FAQ.  How did you check
that you have v2.03?

One way to be sure is to compile and link a simple program with -pg,
then profile it.  If that shows a non-trivial profile, I'd suggest
recompile and relink your real program and try again.

> I'm beginning to suspect that interrupts might have gotten turned off
> somehow, or something like that.

The only thing that can disable profiling is to turn off the timer
tick, or catch it in your code and never chain to the previous
handlers.

- Raw text -


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