Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Gprof and prof resolution.
@ 1997-05-24  4:00 David Coote
  1997-05-24  4:00 ` Dirk Grunwald
  0 siblings, 1 reply; 3+ messages in thread
From: David Coote @ 1997-05-24  4:00 UTC (permalink / raw)



Gprof and prof offer some application profiling capabilities. From the man 
pages it looks like they sample the PC at 1024Hz. I think they're strobing off 
the system real time clock which defaults to this value. (There's mention in 
the DEC UNIX FAQ that you can set the real-time clock to microsecond 
resolution but I haven't rebuilt tthe kernel to check this as yet.) Does 
anybody know if you can adjust the sampling rate used by gprof and prof? Does 
the sampling rate depend on the system real-time clock?

Thanks

David




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Gprof and prof resolution.
  1997-05-24  4:00 Gprof and prof resolution David Coote
@ 1997-05-24  4:00 ` Dirk Grunwald
  1997-05-26  4:00   ` David Coote
  0 siblings, 1 reply; 3+ messages in thread
From: Dirk Grunwald @ 1997-05-24  4:00 UTC (permalink / raw)




I think you can adjust the clock rate using a kernel parameter, but it
may be more useful for your purposes to look at the 'DCPI' tool from
DEC-SRC. This tool uses the instruction count interrupt to do more
accurate system wide profiling.

-- 
Dirk Grunwald                 Assoc. Prof, Univ. of Colorado at Boulder



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Gprof and prof resolution.
  1997-05-24  4:00 ` Dirk Grunwald
@ 1997-05-26  4:00   ` David Coote
  0 siblings, 0 replies; 3+ messages in thread
From: David Coote @ 1997-05-26  4:00 UTC (permalink / raw)




>I think you can adjust the clock rate using a kernel parameter, but it

I think you're right re the real-time clock resolution but I haven't been able 
to find anything that tells me if the prof/gprof sampling rate depends on this 
or something else.

>may be more useful for your purposes to look at the 'DCPI' tool from
>DEC-SRC. This tool uses the instruction count interrupt to do more
>accurate system wide profiling.

Just today I've been looking at some results obtained from DCPI. It does look 
useful. But I don't think it supports as yet a hierarchical output a la gprof. 

Thanks

David




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-05-26  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-24  4:00 Gprof and prof resolution David Coote
1997-05-24  4:00 ` Dirk Grunwald
1997-05-26  4:00   ` David Coote

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox