| Filename | /usr/lib/perl5/DateTime/Helpers.pm |
| Statements | Executed 11 statements in 224µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 11µs | 11µs | DateTime::Helpers::BEGIN@2 |
| 1 | 1 | 1 | 10µs | 14µs | DateTime::Helpers::BEGIN@6 |
| 1 | 1 | 1 | 9µs | 21µs | DateTime::Helpers::BEGIN@7 |
| 1 | 1 | 1 | 5µs | 5µs | DateTime::Helpers::BEGIN@9 |
| 0 | 0 | 0 | 0s | 0s | DateTime::Helpers::can |
| 0 | 0 | 0 | 0s | 0s | DateTime::Helpers::isa |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package DateTime::Helpers; | ||||
| 2 | # spent 11µs within DateTime::Helpers::BEGIN@2 which was called:
# once (11µs+0s) by DateTime::BEGIN@12 at line 4 | ||||
| 3 | 1 | 7µs | $DateTime::Helpers::VERSION = '0.61'; | ||
| 4 | 1 | 23µs | 1 | 11µs | } # spent 11µs making 1 call to DateTime::Helpers::BEGIN@2 |
| 5 | |||||
| 6 | 3 | 25µs | 2 | 17µs | # spent 14µs (10+4) within DateTime::Helpers::BEGIN@6 which was called:
# once (10µs+4µs) by DateTime::BEGIN@12 at line 6 # spent 14µs making 1 call to DateTime::Helpers::BEGIN@6
# spent 4µs making 1 call to strict::import |
| 7 | 3 | 25µs | 2 | 33µs | # spent 21µs (9+12) within DateTime::Helpers::BEGIN@7 which was called:
# once (9µs+12µs) by DateTime::BEGIN@12 at line 7 # spent 21µs making 1 call to DateTime::Helpers::BEGIN@7
# spent 12µs making 1 call to warnings::import |
| 8 | |||||
| 9 | 3 | 141µs | 1 | 5µs | # spent 5µs within DateTime::Helpers::BEGIN@9 which was called:
# once (5µs+0s) by DateTime::BEGIN@12 at line 9 # spent 5µ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 | 4µs | 1; |