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