delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/11/08:52:58

Date: Mon, 11 Jan 1999 15:51:38 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: George Lugovoy <glugovoy AT uic DOT rnd DOT runnet DOT ru>
cc: djgpp AT delorie DOT com
Subject: Re: gprof needs help
In-Reply-To: <3699A867.41C67EA6@uic.rnd.runnet.ru>
Message-ID: <Pine.SUN.3.91.990111154803.25036G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Mon, 11 Jan 1999, George Lugovoy wrote:

> Each sample counts as 0.055556 seconds.
>   %   cumulative   self              self     total
>  time   seconds   seconds    calls  Ts/call  Ts/call  name
> 100.00      0.28     0.28                            
> __get_current_directory
>   0.00      0.28     0.00    27113     0.00     0.00  ForceExt
>   0.00      0.28     0.00    15148     0.00     0.00  FL_Open
>   0.00      0.28     0.00    14039     0.00     0.00  Long2Str

Was this program linked with DJGPP v2.02?

If so, then the profiling code there has a bug that manifests itself in 
the above way: the first function is shown to take 100% of the time, and 
the rest take 0%.  This info is bogus, don't make any conclusions based 
on it.

I can send you a patched source of a library module which is responsible 
for this.  You will need to compile it, put it into libc.a, and then 
rebuild your program and run it again.  *Then* the profile should make 
sense.

- Raw text -


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