comp.lang.ada
 help / color / mirror / Atom feed
From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen)
Subject: Re: gprof question
Date: 2 Jul 2001 12:17:45 -0500
Date: 2001-07-02T12:17:45-05:00	[thread overview]
Message-ID: <jGoM1wxssfCc@eisner.encompasserve.org> (raw)
In-Reply-To: 9hpdkf$nhb$1@s1.read.news.oleane.net

In article <9hpdkf$nhb$1@s1.read.news.oleane.net>, "Jean-Pierre Rosen" <rosen@adalog.fr> writes:
> I have a multi-tasks, IO intensive program that I ran under gprof to identify bottlenecks (GNAT 3.13p under Win95).
> Although the (real) execution time is about 3mn 30s, gprof shows only 6 samples (at 0.01s. period!).
> My explanation is that interrupts (and therefore gprof sampling) are suspended during IO suspension, and that all time spent in IO
> procedures escapes analysis. Is this correct ? It would be terribly annoying in my case...

You might consider whether the operating system in question has the
ability to wait for IO in the mode of the caller.  If it does not,
there is no way a user mode interrupt could come while you are
waiting for IO.

But I am not sure I know what "interrupts" are for a user mode
program on Windows or Linux.  On VMS the corresponding thing
might be "AST's" which certainly work when waiting for IO
(unless GNAT does something quite wrong).  Perhaps trying
it on VMS would get you "close-enough" profile results to
the real answers for Windows.



      parent reply	other threads:[~2001-07-02 17:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-02  8:53 gprof question Jean-Pierre Rosen
2001-07-02 13:30 ` Ted Dennison
2001-07-02 15:03   ` Jean-Pierre Rosen
2001-07-02 17:19     ` Ted Dennison
2001-07-03  7:41       ` Jean-Pierre Rosen
2001-07-03 14:32         ` Ted Dennison
2001-07-02 17:17 ` Larry Kilgallen [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox