Filename | /usr/lib/perl5/DateTime/Helpers.pm |
Statements | Executed 11 statements in 203µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 13µs | 34µs | BEGIN@7 | DateTime::Helpers::
1 | 1 | 1 | 10µs | 10µs | BEGIN@2 | DateTime::Helpers::
1 | 1 | 1 | 9µs | 12µs | BEGIN@6 | DateTime::Helpers::
1 | 1 | 1 | 6µs | 6µs | BEGIN@9 | DateTime::Helpers::
0 | 0 | 0 | 0s | 0s | can | DateTime::Helpers::
0 | 0 | 0 | 0s | 0s | isa | DateTime::Helpers::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package DateTime::Helpers; | ||||
2 | # spent 10µs within DateTime::Helpers::BEGIN@2 which was called:
# once (10µs+0s) by DateTime::BEGIN@12 at line 4 | ||||
3 | 1 | 6µs | $DateTime::Helpers::VERSION = '0.61'; | ||
4 | 1 | 21µs | 1 | 10µs | } # spent 10µs making 1 call to DateTime::Helpers::BEGIN@2 |
5 | |||||
6 | 3 | 23µs | 2 | 16µs | # spent 12µs (9+4) within DateTime::Helpers::BEGIN@6 which was called:
# once (9µs+4µs) by DateTime::BEGIN@12 at line 6 # spent 12µs making 1 call to DateTime::Helpers::BEGIN@6
# spent 4µs making 1 call to strict::import |
7 | 3 | 38µs | 2 | 54µs | # spent 34µs (13+20) within DateTime::Helpers::BEGIN@7 which was called:
# once (13µs+20µs) by DateTime::BEGIN@12 at line 7 # spent 34µs making 1 call to DateTime::Helpers::BEGIN@7
# spent 20µs making 1 call to warnings::import |
8 | |||||
9 | 3 | 113µs | 1 | 6µs | # spent 6µs within DateTime::Helpers::BEGIN@9 which was called:
# once (6µs+0s) by DateTime::BEGIN@12 at line 9 # spent 6µs making 1 call to DateTime::Helpers::BEGIN@9 |
10 | |||||
11 | sub can { | ||||
12 | my $object = shift; | ||||
13 | my $method = shift; | ||||
14 | |||||
15 | return unless Scalar::Util::blessed($object); | ||||
16 | return $object->can($method); | ||||
17 | } | ||||
18 | |||||
19 | sub isa { | ||||
20 | my $object = shift; | ||||
21 | my $method = shift; | ||||
22 | |||||
23 | return unless Scalar::Util::blessed($object); | ||||
24 | return $object->isa($method); | ||||
25 | } | ||||
26 | |||||
27 | 1 | 2µs | 1; |