delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/17/19:22:40

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <000b01c1875a$164a77b0$1400a8c0@alex>
From: "Alex Oleynikov" <alex AT compuweigh DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: Profiling Application
Date: Mon, 17 Dec 2001 19:22:33 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Reply-To: djgpp AT delorie DOT com

Thanks,

your advice worked fine!

Alex

>>You got it partly wrong. '-a' is not really for profiling: it's for
>>line-by-line execution counting.  Try again, without '-a', and you'll
>>be better off, I guess.  If you really want execution counts per
>>source line, I recommend using "gcov" and gcc options "-fprofile-arcs
>>-ftest-coverage" instead.

>>IIRC, -pg and -a don't work together at all. That's the reason why you
>>didn't get the gmon.out file.  Note that you have to *link* with -pg,
>>too, not just compile.




- Raw text -


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