Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Dec 2011 10:42:17 -0800
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Ryan Stone <rysto32@gmail.com>
Cc:        freebsd-current@freebsd.org, Lyndon Nerenberg <lyndon@orthanc.ca>, Chris Rees <utisoft@gmail.com>
Subject:   Re: WITHOUT_PROFILE=yes by default
Message-ID:  <20111202184217.GA3911@troutmask.apl.washington.edu>
In-Reply-To: <CAFMmRNxHzjOVogH4EyAmXqVJ1kTL6tqghTVujtBhkvAQT2hkTw@mail.gmail.com>
References:  <4ED8776F.9060301@FreeBSD.org> <20111202072349.GA89183@troutmask.apl.washington.edu> <20111202083501.GA73959@dragon.NUXI.org> <CADe0-4nj=ZvfPrT=9=m9hQhsADn9--5VFoAxTncGasQQTZN=0g@mail.gmail.com> <alpine.OSX.1.10.1112020746330.91234@peregrin.orthanc.ca> <CAFMmRNxeP_AEQ11jLJ8NCZmEHyxoeg4Z%2Bb6zJbETC8-S7nqhrQ@mail.gmail.com> <alpine.OSX.1.10.1112020852270.91234@peregrin.orthanc.ca> <CADLo83-ERuprd%2B1GmHrzJqhN5yBokQP7ObswZ4rS0W79Q7nJng@mail.gmail.com> <alpine.OSX.1.10.1112020857250.91234@peregrin.orthanc.ca> <CAFMmRNxHzjOVogH4EyAmXqVJ1kTL6tqghTVujtBhkvAQT2hkTw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111202184217.GA3911>