delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/05/12/15:29:56

Message-Id: <200305121929.h4CJTEN08938@delorie.com>
Subject: =?iso-8859-1?Q?gprof_with_all_zero_execution_times_in_version_2=2E03?=
Sender: "=?iso-8859-1?Q?alrc AT task=2Ecom=2Ebr?=" <alrc AT task DOT com DOT br>
From: "=?iso-8859-1?Q?alrc AT task=2Ecom=2Ebr?=" <alrc AT task DOT com DOT br>
Date: Mon, 12 May 2003 16:29:05 -0300
To: "=?iso-8859-1?Q?djgpp AT delorie=2Ecom?=" <djgpp AT delorie DOT com>
X-Priority: 3
X-MSMail-Priority: Normal
Mime-Version: 1.0
X-Mailer: JMail 4.3.1 by Dimac
X-Originating-IP: =?iso-8859-1?Q?200=2E165=2E11=2E252?=
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h4CJTFN08941
Reply-To: alrc AT task DOT com DOT br

Hi all,

I work with DJGPP 2.3 (*.ver files: Djdev203.ver, Bnu213b.ver, Gcc32b.ver) and I want to use gprof, but its exit shows all functions (except __dpmi_int) with 0.00 % execution time. 

The FAQ (item 13.3 Gprof produces garbled profile) mentions: "The solution is to upgrade to DJGPP v2.03 where these bugs are solved", but I am running version 2.03.

The FAQ (item 13.4 Why is __dpmi_int so heavily used?) mentions: "Does your program use I/O or other real-mode services (like BIOS) extensively?". My answer is: my program does use disk I/O, but not extensively! I would expect other functions to have execution time different from zero, even in the scenario where __dpmi_int has a high percentual execution time...

The head of gprof's output is showed below:

Flat profile:

Each sample counts as 0.0555556 seconds.
  %   cumulative   self              self     total           
 time   seconds   seconds    calls  Ts/call  Ts/call  name    
100.00      0.28     0.28                             __dpmi_int
  0.00      0.28     0.00  7382040     0.00     0.00  crc_inc
  0.00      0.28     0.00    13368     0.00     0.00  led_boot_blink
  0.00      0.28     0.00     1213     0.00     0.00  led_reserva
  0.00      0.28     0.00      667     0.00     0.00  incrementa_instante_atual
  0.00      0.28     0.00      104     0.00     0.00  enfilera

Does anyone have an idea about what is going on here?

Thanks in advance,

Andre Chrcanovic

Task Internet - Acesso Banda Larga e Soluções Corporativas em Internet
Acesse www.task.com.br ou ligue (31) 3274-0255

- Raw text -


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