[Info-vax] High resolution per-process CPU consumption statistics
johnwallace4 at yahoo.co.uk
johnwallace4 at yahoo.co.uk
Tue Mar 24 06:54:36 EDT 2020
On Tuesday, 24 March 2020 00:02:22 UTC, Mark Daniel wrote:
> Would like to be able to measure process CPU consumed during specified
> continuous sections of processing. Only interested in CPU-intensive
> sections so USER mode consumed relevant. Imagine inserting calls at the
> beginning and ending of those sections with a magic number representing
> CPU consumption/delta/whatever made available.
>
> As some of these CPU-intensive code sections are short duration the
> granularity needs to be quite fine. The likes of JPI$_CPUTIM and
> LIB$STAT_TIMER (10mS) seem unsuitable.
>
> Prepared for non- USER mode code. This is only for ad hoc developmental
> insight and not general use. Needs to accommodate Alpha and/or Itanium
> (and/or x86-64 :-)
>
> And, of course, any other suggestion.
>
> As always, TIA.
Is it safe to assume that the code in question is single-threaded?
Is it safe to assume that the code in question is running on a
single-processor system?
Is an Alpha-only solution better than nothing at all?
Have a look at RPCC (Read Process Cycle Counter) in the Alpha/VMS
PALcode and see if it might help.
See e.g. the Alpha Architecture Reference Manual documentation e.g.
http://www.bitsavers.org/pdf/dec/alpha/Sites_AlphaArchitectureReferenceManual_1992.pdf
(there's probably more useful RPCC-related stuff available too).
More information about the Info-vax
mailing list