🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix
Article #335

profilers

#335
From: Mark Levison
Date: Tue, 27 Nov 1990 23:51
21 lines
1625 bytes
  I have just finished reading an article called "Inaccuracies in Program
Profilers" by C. Ponder and R. J. Fateman from Software Practice and Experience
May 1988. In this paper several problems with the traditional Unix profiler
gprof are discussed. One of the most important ones is that profiler calculates
the amount of time spent in a routine for each parent by taking the total time
spent in the routine and dividing by the total number of calls to that routine.
The problem is that this is an overall average and if the routine has two
different parents with rather different execution times for each then this
average time will be very misleading. This leads to my question is there any
profiling system out there that will do the same type of job as gprof but
witout this and the other problems the authors mention? Failing that is some
clever way of getting the compiler (cc on a Sun 3/80 at SunOs 4.0.3 or gcc on
the same system) to insert calls to special routine at the start and end of
each call?  I would prefer if such a system were available free because I
do not have any budget to buy any solutions.

Thanks in advance,
Mark Levison
Research Assistant
levisonm@qucis.queensu.ca
Technical Details
Message-ID: <2283@megadon.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!altos!megadon!clp

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!altos!megadon!clp
From: levisonm@qucis.queensu.ca (Mark Levison)
Newsgroups: comp.unix
Subject: profilers
Keywords: profiling inaccuracies
Message-ID: <2283@megadon.UUCP>
Date: 27 Nov 90 23:51:15 GMT
Sender: clp@megadon.UUCP
Organization: Queen's University, Kingston, Ontario, Canada
Lines: 21
Approved: clp@megadon.UUCP