Article View: comp.unix.programmer
Article #3481Re: Gprof not giving correct output as per man page option
From: rmansfield
Date: Wed, 05 Apr 2006 12:38
Date: Wed, 05 Apr 2006 12:38
14 lines
1797 bytes
1797 bytes
Well -z does say "gprof will mention all functions in the flat profile, even those that were never called"... Easy solution: gprof -b b >file1 gprof -z -b b >file2 diff -u file1 file2 It would be almost trivial to modify gprof to have it print only the unused functions.. Regards Ryan Mansfield
Technical Details
Message-ID:
<1144240681.985483.126760@j33g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!j33g2000cwa.googlegroups.com!not-for-mailReferences:
<1144230702.550581.320150@i40g2000cwc.googlegroups.com> <1144236822.010521.167490@j33g2000cwa.googlegroups.com> <1144237223.367750.244560@g10g2000cwb.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: fc89c,3622a474f750c276 X-Google-Thread: 1012a6,3622a474f750c276 X-Google-Thread: 11318c,3622a474f750c276 X-Google-Attributes: gidfc89c,gid1012a6,gid11318c,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!j33g2000cwa.googlegroups.com!not-for-mail From: "rmansfield@gmail.com" <rmansfield@gmail.com> Newsgroups: comp.unix.programmer,comp.unix.shell,gnu.gcc.help Subject: Re: Gprof not giving correct output as per man page option Date: 5 Apr 2006 05:38:02 -0700 Organization: http://groups.google.com Lines: 15 Message-ID: <1144240681.985483.126760@j33g2000cwa.googlegroups.com> References: <1144230702.550581.320150@i40g2000cwc.googlegroups.com> <1144236822.010521.167490@j33g2000cwa.googlegroups.com> <1144237223.367750.244560@g10g2000cwb.googlegroups.com> NNTP-Posting-Host: 209.226.137.106 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1144240687 11416 127.0.0.1 (5 Apr 2006 12:38:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 5 Apr 2006 12:38:07 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 proxy.ott.qnx.com:80 (Squid/2.4.STABLE4) Complaints-To: groups-abuse@google.com Injection-Info: j33g2000cwa.googlegroups.com; posting-host=209.226.137.106; posting-account=2NvRmg0AAAA7NZ7H6D90Rt5i2oM6T76O