Filename | /home/s1/perl5/perlbrew/perls/perl-5.22.1/lib/site_perl/5.22.1/x86_64-linux/DateTime/Helpers.pm |
Statements | Executed 8 statements in 839µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 2.00ms | 2.52ms | BEGIN@8 | DateTime::Helpers::
1 | 1 | 1 | 36µs | 41µs | BEGIN@3 | DateTime::Helpers::
1 | 1 | 1 | 15µs | 23µs | BEGIN@4 | 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 | 42µs | 2 | 46µs | # spent 41µs (36+5) within DateTime::Helpers::BEGIN@3 which was called:
# once (36µs+5µs) by DateTime::Duration::BEGIN@10 at line 3 # spent 41µs making 1 call to DateTime::Helpers::BEGIN@3
# spent 4µs making 1 call to strict::import |
4 | 2 | 53µs | 2 | 32µs | # spent 23µs (15+8) within DateTime::Helpers::BEGIN@4 which was called:
# once (15µs+8µs) by DateTime::Duration::BEGIN@10 at line 4 # spent 23µs making 1 call to DateTime::Helpers::BEGIN@4
# spent 8µs making 1 call to warnings::import |
5 | |||||
6 | 1 | 700ns | our $VERSION = '1.27'; | ||
7 | |||||
8 | 2 | 739µs | 1 | 2.52ms | # spent 2.52ms (2.00+513µs) within DateTime::Helpers::BEGIN@8 which was called:
# once (2.00ms+513µs) by DateTime::Duration::BEGIN@10 at line 8 # spent 2.52ms making 1 call to DateTime::Helpers::BEGIN@8 |
9 | |||||
10 | sub can { | ||||
11 | my $object = shift; | ||||
12 | my $method = shift; | ||||
13 | |||||
14 | return unless Scalar::Util::blessed($object); | ||||
15 | return $object->can($method); | ||||
16 | } | ||||
17 | |||||
18 | sub isa { | ||||
19 | my $object = shift; | ||||
20 | my $method = shift; | ||||
21 | |||||
22 | return unless Scalar::Util::blessed($object); | ||||
23 | return $object->isa($method); | ||||
24 | } | ||||
25 | |||||
26 | 1 | 4µs | 1; |