devel-nytprof icon indicating copy to clipboard operation
devel-nytprof copied to clipboard

wishlist: multiple clocks [rt.cpan.org #75917]

Open timbunce opened this issue 10 years ago • 0 comments
trafficstars

Migrated from rt.cpan.org#75917 (status was 'new')

Requestors:

From [email protected] on 2012-03-20 15:33:36:

Devel::NYTProf only records timings from one clock at a time.  (It's nice
that that's configurable, to use any of the clock_gettime() clocks.)
It ought to be possible to configure NYTProf to record multiple clocks
simultaneously.  A naive use of times(), in a very simple profiler,
gives both real time and CPU time, with CPU time split into user-mode
and system-mode.  NYTProf could equally well record both CLOCK_MONOTONIC
and CLOCK_PROCESS_CPUTIME_ID.  The comparison of the two sets of timing
data, on the same subroutine executions, provides useful information.

-zefram

timbunce avatar Feb 22 '15 13:02 timbunce