www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/12/03:02:06

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Profiling allegro apps
Date: Tue, 7 Oct 1997 22:50:21 +0100
Organization: None
Distribution: world
Message-ID: <lvE6v+Ad6qO0Ew+o@talula.demon.co.uk>
References: <01bcd36c$4e55b620$2f65a8c0 AT stefan>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Stefan Schimanski writes:
>does anybody know how to profile code written with djgpp and allegro. 
>gprof doesn't work because no profiling data is produced by the 
>executable.

It works fine for me! I just recompiled the test program using 
"gcc test.c -o test.exe -pg -lalleg", ran it for a while, and got
perfectly reasonable looking output from a "gprof test.exe". 

Of course this will only be able to profile your code, not within the
library functions. To do that, you will have to rebuild Allegro with the
-pg option as well...


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


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