delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/22/18:13:44

Sender: nate AT cartsys DOT com
Message-ID: <35DF2905.CB0A0190@cartsys.com>
Date: Sat, 22 Aug 1998 13:24:37 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Shelby Cain <NOSPAMvhorrit AT email DOT msn DOT com>
CC: djgpp AT delorie DOT com
Subject: Re: DJGPPv2.02 & Profiling in a Windoze 98 Dos Box
References: <e#uUvNMz9GA DOT 274 AT upnetnews03>

Shelby Cain wrote:
> 
> I am having a problem getting profiling to work under DJGPPv2.02...
> 
> Basically, after I have compiled/linked my program with the '-pg' switch, it
> appears as if only one sample is taken and the profiling code stops
> collected data (as reported by gprof).  The end result is the implication
> that the total execution time was around 0.06 seconds on my system with 100%
> of it taken up by __dpmi_int.
> 
> The above example is simply ex35.c from the Allegro gaming library... but I
> want to be able to use this for a more serious optimization project...

I expect this is some conflict between the profiling mechanism and
Allegro's use of timers.  The Allegro docs may discuss this.  Try
profiling some non-allegro program and see if it works.
-- 

Nate Eldredge
nate AT cartsys DOT com


- Raw text -


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