Re: profilers

Chris F Clark <cfc@world.std.com>
12 Dec 1997 14:47:39 -0500

          From comp.compilers

Related articles
profilers Waverly@DigitSW.com (Waverly Edwards) (1997-12-05)
Re: profilers wi534@victoria.tc.ca (William A. Barath) (1997-12-07)
Re: profilers fjh@mundook.cs.mu.OZ.AU (1997-12-10)
Re: profilers bwm@bwmartin.demon.co.uk (Barry Martin) (1997-12-10)
Re: profilers adewitt@cs.cmu.edu (Tony DeWitt) (1997-12-10)
Re: profilers debray@CS.Arizona.EDU (1997-12-12)
Re: profilers cfc@world.std.com (Chris F Clark) (1997-12-12)
Re: profilers wi534@victoria.tc.canada (William A. Barath) (1997-12-12)
| List of all articles for this month |
From: Chris F Clark <cfc@world.std.com>
Newsgroups: comp.compilers
Date: 12 Dec 1997 14:47:39 -0500
Organization: The World Public Access UNIX, Brookline, MA
References: 97-12-017 97-12-046 97-12-063
Keywords: performance, testing

"William A. Barath" <wi534@victoria.tc.ca> wrote a description of a
profiling scheme where a high precision counter was subtracted between
profiling points to which the moderator responded:
>[That's what Unix C compilers do with the -p flag. -John]
to which Fergus Henderson replied:
> Are you sure? I thought Unix C compilers inserted profiling code that
> recorded execution *counts* for each function, but that for doing the
> actual timing they used PC-sampling techiques based on the use of
> `setitimer(ITIMER_PROF, ...)' to schedule regular `SIGPROF' signals.


Fergus, both you and the moderator are right. The normal profiling
done on Unix systems is statistical. However, some Unix profiling
tools, such as DEC's Atom, can do the timing based upon high
resolution counters and subtracting the difference. Also don't
neglect tools like Pixie which statically count (or otherwise
simulate) the instructions and then only need number of times each
instruction sequence (basic block) is executed--although that can
neglect factors like cache misses caused by other processes.


-Chris


*****************************************************************************
Chris Clark Internet : compres@world.std.com
Compiler Resources, Inc. CompuServe : 74252,1375
3 Proctor Street voice : (508) 435-5016
Hopkinton, MA 01748 USA fax : (508) 435-4847 (24 hours)
------------------------------------------------------------------------------
Web Site in Progress: Web Site : http://world.std.com/~compres
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.