[Info-vax] High resolution per-process CPU consumption statistics
Arne Vajhøj
arne at vajhoej.dk
Tue Mar 31 13:38:24 EDT 2020
On 3/31/2020 1:25 PM, Arne Vajhøj wrote:
> After reading this thread I decided to play around a little.
> * include clockstack.h in all relevant files
> * put FUNC_ENTER in start of functions
> * put FUNC_EXIT at end of functions (all ends!)
> * put DUMP_STATS where one want results
> * build with USE_CLOCKSTACK if timing wanted (without it no code gets
> added)
For those that 10 years ago dabbled (or maybe still does) in AOP,
then FUNC_ENTER is a before call advice and FUNC_EXIT is an after
call advice (for practical reasons related to C macros moved
into the function).
Arne
More information about the Info-vax
mailing list