Filename | /usr/lib/perl5/site_perl/5.12.4/i686-linux/DateTime/Helpers.pm |
Statements | Executed 12 statements in 1.22ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 3.82ms | 10.4ms | BEGIN@9 | DateTime::Helpers::
1 | 1 | 1 | 79µs | 103µs | BEGIN@6 | DateTime::Helpers::
1 | 1 | 1 | 50µs | 157µs | BEGIN@7 | 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 | 12µs | $DateTime::Helpers::VERSION = '0.76'; | ||
4 | } | ||||
5 | |||||
6 | 3 | 143µs | 2 | 126µs | # spent 103µs (79+24) within DateTime::Helpers::BEGIN@6 which was called:
# once (79µs+24µs) by DateTime::Duration::BEGIN@11 at line 6 # spent 103µs making 1 call to DateTime::Helpers::BEGIN@6
# spent 24µs making 1 call to strict::import |
7 | 3 | 153µs | 2 | 264µs | # spent 157µs (50+107) within DateTime::Helpers::BEGIN@7 which was called:
# once (50µs+107µs) by DateTime::Duration::BEGIN@11 at line 7 # spent 157µs making 1 call to DateTime::Helpers::BEGIN@7
# spent 107µs making 1 call to warnings::import |
8 | |||||
9 | 3 | 872µs | 1 | 10.4ms | # spent 10.4ms (3.82+6.54) within DateTime::Helpers::BEGIN@9 which was called:
# once (3.82ms+6.54ms) by DateTime::Duration::BEGIN@11 at line 9 # spent 10.4ms 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 | 40µs | 1; |