From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6a09a7f0388c172e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-02 09:17:50 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: gprof question Message-ID: References: <9hpdkf$nhb$1@s1.read.news.oleane.net> Organization: LJK Software Date: 2 Jul 2001 12:17:45 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 994090667 216.44.122.34 (Mon, 02 Jul 2001 16:17:47 GMT) NNTP-Posting-Date: Mon, 02 Jul 2001 16:17:47 GMT Xref: archiver1.google.com comp.lang.ada:9334 Date: 2001-07-02T12:17:45-05:00 List-Id: In article <9hpdkf$nhb$1@s1.read.news.oleane.net>, "Jean-Pierre Rosen" 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.