Filename | /usr/local/lib/perl/5.14.2/DateTime/Helpers.pm |
Statements | Executed 9 statements in 140µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 11µs | 14µs | BEGIN@6 | DateTime::Helpers::
1 | 1 | 1 | 6µs | 10µs | BEGIN@7 | DateTime::Helpers::
1 | 1 | 1 | 3µs | 3µ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 | { | ||||
3 | 2 | 1µs | $DateTime::Helpers::VERSION = '1.04'; | ||
4 | } | ||||
5 | |||||
6 | 2 | 21µs | 2 | 17µs | # spent 14µs (11+3) within DateTime::Helpers::BEGIN@6 which was called:
# once (11µs+3µs) by DateTime::Duration::BEGIN@11 at line 6 # spent 14µs making 1 call to DateTime::Helpers::BEGIN@6
# spent 3µs making 1 call to strict::import |
7 | 2 | 29µs | 2 | 15µs | # spent 10µs (6+4) within DateTime::Helpers::BEGIN@7 which was called:
# once (6µs+4µs) by DateTime::Duration::BEGIN@11 at line 7 # spent 10µs making 1 call to DateTime::Helpers::BEGIN@7
# spent 4µs making 1 call to warnings::import |
8 | |||||
9 | 2 | 87µs | 1 | 3µs | # spent 3µs within DateTime::Helpers::BEGIN@9 which was called:
# once (3µs+0s) by DateTime::Duration::BEGIN@11 at line 9 # spent 3µ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 | 3µs | 1; |