* Profiling tool under WinNT ? @ 1999-11-02 0:00 Herv� BITTEUR 1999-11-03 0:00 ` Geoff Bull ` (2 more replies) 0 siblings, 3 replies; 8+ messages in thread From: Herv� BITTEUR @ 1999-11-02 0:00 UTC (permalink / raw) Could someone recommend a profiling tool to analyze an Ada program running under Windows NT. Something like a version of 'gprof' that would run under Win98/WinNT ? I'm using GNAT 3.12p on this platform. Before jumping on any kind of blind optimization, I would like to figure out where my CPU is actually spent ... Thanks for any clue, --Herve Bitteur ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Profiling tool under WinNT ? 1999-11-02 0:00 Profiling tool under WinNT ? Herv� BITTEUR @ 1999-11-03 0:00 ` Geoff Bull [not found] ` <01bf25cb$a5155250$022a6282@dieppe> 1999-11-03 0:00 ` DuckE 1999-11-03 0:00 ` Jerry van Dijk 2 siblings, 1 reply; 8+ messages in thread From: Geoff Bull @ 1999-11-03 0:00 UTC (permalink / raw) "Herv� BITTEUR" wrote: > > Could someone recommend a profiling tool to analyze an Ada program > running under Windows NT. Something like a version of 'gprof' that would > run under Win98/WinNT ? > I'm using GNAT 3.12p on this platform. GNAT Professional has this tool (according to www.gnat.com): gprof - produces an execution profile of a program. I don't know whether it comes with the free version though. It's not in 3.11p. Cheers Geoff ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <01bf25cb$a5155250$022a6282@dieppe>]
* Re: Profiling tool under WinNT ? [not found] ` <01bf25cb$a5155250$022a6282@dieppe> @ 1999-11-04 0:00 ` Mumit Khan 1999-11-04 0:00 ` Herv� BITTEUR 0 siblings, 1 reply; 8+ messages in thread From: Mumit Khan @ 1999-11-04 0:00 UTC (permalink / raw) In article <01bf25cb$a5155250$022a6282@dieppe>, Pascal Obry <pascal_obry@csi.com> wrote: > >Gprof has not been ported to NT yet. > The tool "gprof" works just fine on NT, so perhaps you're thinking about gcrt?.o support for NT? If so, it's worked in Cygwin for a while, and also works for Mingw (native windows32, so no 3rd party extras needed). Here's some ChangeLog entries from Cygwin winsup: Sun Aug 15 19:11:49 1999 Mumit Khan <khan@xraylith.wisc.edu> * gcrt0.c (__eprol): Avoid namespace pollution. (_monstartup): Turn into a constructor function and prevent multiple invocations. Fri Jul 16 15:09:50 1998 Stan Cox <scox@cygnus.com> * (gcrt0.c, gmon.c, profil.c, mcount.c, gmon.h, profil.h, config/i386/profile.h): New files for gprof cygwin support. Some code contributed by Tim Newsham for Secure Networks, Inc. * Makefile.in (LIBGMON_A, GMON_START, GMON_OFILES): New for gprof. With just a few very minor tweaks, it works for Mingw as well. Please contact me directly if you need more information. If you choose to use the gcrt0.o from Cygwin source distribution, linking against it puts your code under GPL unless you buy a commercial license from Cygnus of course. Of course, whatever GCC backend you're using will have to have the profiling support for x86-win32. Don't remember if went in 2.8.x tree or not. Regards, Mumit ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Profiling tool under WinNT ? 1999-11-04 0:00 ` Mumit Khan @ 1999-11-04 0:00 ` Herv� BITTEUR 1999-11-05 0:00 ` Jerry van Dijk 1999-11-08 0:00 ` Mumit Khan 0 siblings, 2 replies; 8+ messages in thread From: Herv� BITTEUR @ 1999-11-04 0:00 UTC (permalink / raw) To: Mumit Khan Thank you for your answer. However, I received rather inconsistent informations about whether or not there is a working version of gprof for windows NT. A careful reading of your answer tells me that there should be one. Since GNAT now uses Mingw, I need a Mingw gprof. Is there an already built version somewhere ? (I'm looking for a free version, sigh). Or should I try to build it on my own ? Where could I get the needed source material ? Thanks for any help. --Herve Mumit Khan wrote: > In article <01bf25cb$a5155250$022a6282@dieppe>, > Pascal Obry <pascal_obry@csi.com> wrote: > > > >Gprof has not been ported to NT yet. > > > > The tool "gprof" works just fine on NT, so perhaps you're thinking about > gcrt?.o support for NT? If so, it's worked in Cygwin for a while, and > also works for Mingw (native windows32, so no 3rd party extras needed). > > Here's some ChangeLog entries from Cygwin winsup: > > Sun Aug 15 19:11:49 1999 Mumit Khan <khan@xraylith.wisc.edu> > > * gcrt0.c (__eprol): Avoid namespace pollution. > (_monstartup): Turn into a constructor function and prevent multiple > invocations. > > Fri Jul 16 15:09:50 1998 Stan Cox <scox@cygnus.com> > > * (gcrt0.c, gmon.c, profil.c, mcount.c, gmon.h, profil.h, > config/i386/profile.h): New files for gprof cygwin support. > Some code contributed by Tim Newsham for Secure Networks, Inc. > * Makefile.in (LIBGMON_A, GMON_START, GMON_OFILES): New for gprof. > > With just a few very minor tweaks, it works for Mingw as well. Please > contact me directly if you need more information. > > If you choose to use the gcrt0.o from Cygwin source distribution, linking > against it puts your code under GPL unless you buy a commercial license > from Cygnus of course. > > Of course, whatever GCC backend you're using will have to have the > profiling support for x86-win32. Don't remember if went in 2.8.x > tree or not. > > Regards, > Mumit ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Profiling tool under WinNT ? 1999-11-04 0:00 ` Herv� BITTEUR @ 1999-11-05 0:00 ` Jerry van Dijk 1999-11-08 0:00 ` Mumit Khan 1 sibling, 0 replies; 8+ messages in thread From: Jerry van Dijk @ 1999-11-05 0:00 UTC (permalink / raw) In article <382160BD.7F415C4C@alcatel.fr> Herve.Bitteur@alcatel.fr writes: >Thank you for your answer. However, I received rather inconsistent informations >about whether or not there is a working version of gprof for windows NT. >A careful reading of your answer tells me that there should be one. >Since GNAT now uses Mingw, I need a Mingw gprof. Note that Mumit said: >> Of course, whatever GCC backend you're using will have to have the >> profiling support for x86-win32. Don't remember if went in 2.8.x >> tree or not. And GNAT 3.12p is based upon gcc 2.8.1 -- -- -- Jerry van Dijk | email: jdijk@acm.org -- Team-Ada | www: stad.dsl.nl/~jvandyk -- Paris, France | Leiden, Holland ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Profiling tool under WinNT ? 1999-11-04 0:00 ` Herv� BITTEUR 1999-11-05 0:00 ` Jerry van Dijk @ 1999-11-08 0:00 ` Mumit Khan 1 sibling, 0 replies; 8+ messages in thread From: Mumit Khan @ 1999-11-08 0:00 UTC (permalink / raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1320 bytes --] In article <382160BD.7F415C4C@alcatel.fr>, Herv� BITTEUR <Herve.Bitteur@alcatel.fr> wrote: >Thank you for your answer. However, I received rather inconsistent informations >about whether or not there is a working version of gprof for windows NT. >A careful reading of your answer tells me that there should be one. >Since GNAT now uses Mingw, I need a Mingw gprof. Is there an already built >version somewhere ? (I'm looking for a free version, sigh). Or should I try to >build it on my own ? Where could I get the needed source material ? I've uploaded the latest Mingw runtime sources (and prebuilt binaries for both CRTDLL and MSVCRT versions) that include the profiling support code gcrt?.o and libgmon.a. ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/runtime/ You want the 1999-11-07 version. If you don't have a gprof.exe binary for native windows32, then you can use the one in: ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/ports/gprof-exe.zip You'll certainly need to add a few bits to the GCC specs file to add -pg support, but that's pretty trivial. Please understand that I in no way suport this for anything other than folks using *my* GCC distribution. I doubt if I will have the time to answer questions regarding usage, compiling, installation, ... sorry. Regards, Mumit ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Profiling tool under WinNT ? 1999-11-02 0:00 Profiling tool under WinNT ? Herv� BITTEUR 1999-11-03 0:00 ` Geoff Bull @ 1999-11-03 0:00 ` DuckE 1999-11-03 0:00 ` Jerry van Dijk 2 siblings, 0 replies; 8+ messages in thread From: DuckE @ 1999-11-03 0:00 UTC (permalink / raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 959 bytes --] I don't know where you can find a profiling tool for GNAT on NT but one is included with ObjectAda Professional for NT. I believe it is called a "statistical profiler" (but I'm no expert on terminology). It samples the program counter at regular intervals and buffers the result. When you stop the program, the profiler resolves the program counters in its buffer against the system and produces a text file listing how many hits in each procedure. It's a useful tool. SteveD Herv� BITTEUR <Herve.Bitteur@alcatel.fr> wrote in message news:381EAC04.6FAEE337@alcatel.fr... > Could someone recommend a profiling tool to analyze an Ada program > running under Windows NT. Something like a version of 'gprof' that would > run under Win98/WinNT ? > I'm using GNAT 3.12p on this platform. > > Before jumping on any kind of blind optimization, I would like to figure > out where my CPU is actually spent ... > > Thanks for any clue, > --Herve Bitteur > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Profiling tool under WinNT ? 1999-11-02 0:00 Profiling tool under WinNT ? Herv� BITTEUR 1999-11-03 0:00 ` Geoff Bull 1999-11-03 0:00 ` DuckE @ 1999-11-03 0:00 ` Jerry van Dijk 2 siblings, 0 replies; 8+ messages in thread From: Jerry van Dijk @ 1999-11-03 0:00 UTC (permalink / raw) In article <381EAC04.6FAEE337@alcatel.fr> Herve.Bitteur@alcatel.fr writes: >Could someone recommend a profiling tool to analyze an Ada program >running under Windows NT. Something like a version of 'gprof' that would >run under Win98/WinNT ? >I'm using GNAT 3.12p on this platform. There is no gprof, but you might want to try using gcov. -- -- -- Jerry van Dijk | email: jdijk@acm.org -- Team-Ada | www: stad.dsl.nl/~jvandyk -- Paris, France | Leiden, Holland ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1999-11-08 0:00 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 1999-11-02 0:00 Profiling tool under WinNT ? Herv� BITTEUR 1999-11-03 0:00 ` Geoff Bull [not found] ` <01bf25cb$a5155250$022a6282@dieppe> 1999-11-04 0:00 ` Mumit Khan 1999-11-04 0:00 ` Herv� BITTEUR 1999-11-05 0:00 ` Jerry van Dijk 1999-11-08 0:00 ` Mumit Khan 1999-11-03 0:00 ` DuckE 1999-11-03 0:00 ` Jerry van Dijk
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox