From: firth@sei.cmu.edu (Robert Firth)
Subject: Re: Inheritance & limited private types
Date: 27 Oct 89 17:50:37 GMT [thread overview]
Message-ID: <4697@bd.sei.cmu.edu> (raw)
In-Reply-To: 800@philmtl.philips.ca
In article <800@philmtl.philips.ca> pedersen@philmtl.philips.ca (Paul Pedersen) writes:
>The conclusion I came to was that it is not possible to do profiling
>using UNIX on a fast processor, short of using a logic analyzer and a
>lot of interpreting software (far from sure that this is even feasable).
>
>I would be *very* interested in hearing from anybody who has solved this
>problem (I gave up) :-)
Gee, I implemented profiling on this Unix machine in an afternoon.
Admittedly, I was helped by the existence of a system call 'profil',
which does all the real work.
The purpose of profiling is to find out where the program is spending
a lot of its time. Now, the profiling command samples the program
counter 100 times a second, so in a one-minute run that is 6000
samples. Any subprogram body that consumes more than 1% of the mill
will therefore generate on average more than 60 hits, which is surely
a meaningful number.
If no program run ever takes more than a minute, few Unix users will
care about having it tuned. And if a given function uses less than
1% of the mill, you don't care about tuning it.
next prev parent reply other threads:[~1989-10-27 17:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1989-10-16 13:57 Does Ada really need MULTIPLE inheritance? "Norman H. Cohen"
1989-10-17 17:23 ` David A Eichmann,316K
1989-10-17 20:49 ` David Chase
1989-10-21 19:39 ` Inheritance & limited private types William Thomas Wolfe, 2847
1989-10-22 7:00 ` Vinod Grover
1989-10-22 18:03 ` Inheritance & limited private t stt
1989-10-22 20:22 ` Inheritance & limited private types Barry Margolin
1989-10-23 0:39 ` Ted Dunning
1989-10-27 15:44 ` Paul Pedersen
1989-10-27 17:50 ` Robert Firth [this message]
1989-10-27 22:32 ` Profiling (was Re: Inheritance & limited private types) Barry Margolin
1989-10-27 0:04 ` Inheritance & limited private types Dick Karpinski
1989-10-30 17:12 ` Does Ada really need MULTIPLE inheritance? Paul Baker
1989-10-19 2:27 ` William Thomas Wolfe, 2847
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox