X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: =?ISO-8859-1?Q?Hans-Bernhard_Br=F6ker?= <HBBroeker AT t-online DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gprof output
Date: Sun, 27 May 2012 15:03:22 +0200
Lines: 23
Message-ID: <a2en0pFpq6U1@mid.dfncis.de>
References: <7822bb4a-1059-491a-8489-e1d9f3dbc501 AT l17g2000vbj DOT googlegroups DOT com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.dfncis.de rJLuTo+j/G9S9wPedqXqVQenQ9+xXkpJMue5NorfuVR7x/+FzjFcuC9pxDRPFQjK2pwXfa/iRB
Cancel-Lock: sha1:5iDeEabayeX+d3Wl2pSE5RHKvEI=
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120420 Thunderbird/12.0
In-Reply-To: <7822bb4a-1059-491a-8489-e1d9f3dbc501@l17g2000vbj.googlegroups.com>
Bytes: 1571
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
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
Precedence: bulk

On 26.05.2012 20:34, Georg wrote:
> I tried gprof to profile one of my programs. This is the ouput:
>
> Flat
> profile:
>
> Each sample counts as 0.0555556
> seconds.
>    %   cumulative   self              self
> total
>   time   seconds   seconds    calls  Ts/call  Ts/call
> name
>   87.39     11.56    11.56
> __dpmi_int
[...]

> My question is: is it normal that a djgpp program uses 87% for
> __dpmi_int?

It can be, depending on what the program does.  For a program that's 
spends a lot of its work in real-mode interrupts (like BIOS and DOS 
services) it's normal.  For computation-heavy ones, it wouldn't be.