Subject: | Inclusive times |
The profile times for Devel::Profile appear to be exclusive times, ie.
only the time spend on the code inside that subroutine and not time
spent calling other routines. I often find inclusive time, time spent
executing a subroutine and all routines called from it, very useful for
finding the true cost of calling a routine. It would be very nice if
there were a way to get this information from Devel::Profile.
To make clear the difference between inclusive and exclusive time...
sub foo { sleep 5 }
sub bar { foo() }
bar()
subroutine exclusive time inclusive time
foo 5 5
bar 0.001 5.001
PS Devel::Profile is the only profiler which works with the perl
installation and code I am currently working with, thank you.