Re: WITHOUT_PROFILE=yes by default

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Fri, 2 Dec 2011 10:42:17 -0800
On Fri, Dec 02, 2011 at 01:12:42PM -0500, Ryan Stone wrote:
> On Fri, Dec 2, 2011 at 12:07 PM, Lyndon Nerenberg <lyndon_at_orthanc.ca> wrote:
> > No, these days 'obsolete' seems to mean 'it does not have a sexy
> > Flash-driven web GUI.'
> 
> In this case, 'obsolete' means it's a difficult-to-use tool that
> requires recompiling your application, can't be used in production,
> doesn't work when shared libraries are in the picture, offers
> limited-to-no visibility into the underlying reasons why a particular
> code path is a hotspot and introduces large measurement errors

Difficult to use?  

% gfortran -o ang -pg ang.f90
% ./ang
% gprof -b -l ./ang ang.gmon | more
...
  %   cumulative   self              self     total           
 time   seconds   seconds    calls  ms/call  ms/call  name    
 35.0       0.01     0.01        0  100.00%           _write [1]
 33.3       0.02     0.01        0  100.00%           _mcount [2]
 15.0       0.02     0.00     1080     0.00     0.00  arena_purge [4]
  5.6       0.02     0.00        0  100.00%           .mcount (40)
  2.2       0.02     0.00    29600     0.00     0.00  __quorem_D2A [8]
  1.7       0.02     0.00     1080     0.00     0.00  __dtoa [7]
  1.1       0.02     0.00    29552     0.00     0.00  __multadd_D2A [13]
  1.1       0.02     0.00     7557     0.00     0.00  memcpy [12]

Please show me how you would get the same information
with pmcstat (or other tools) in the base system.

Note, ang.f90 is a toy app I had lying around, which
completes in a second or 2.  If you want a non-toy example,
I'll happily run one of my libm testcase for you.

-- 
Steve
Received on Fri Dec 02 2011 - 17:42:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:21 UTC