Subject: | wishlist: multiple clocks |
Date: | Tue, 20 Mar 2012 15:33:17 +0000 |
To: | bug-Devel-NYTProf [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
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