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 661µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 1.57ms | 2.00ms | BEGIN@8 | DateTime::Helpers::
1 | 1 | 1 | 19µs | 22µs | BEGIN@3 | DateTime::Helpers::
1 | 1 | 1 | 10µs | 14µ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 | 27µs | 2 | 24µs | # spent 22µs (19+3) within DateTime::Helpers::BEGIN@3 which was called:
# once (19µs+3µs) by DateTime::Duration::BEGIN@10 at line 3 # spent 22µs making 1 call to DateTime::Helpers::BEGIN@3
# spent 3µs making 1 call to strict::import |
4 | 2 | 36µs | 2 | 19µs | # spent 14µs (10+5) within DateTime::Helpers::BEGIN@4 which was called:
# once (10µs+5µs) by DateTime::Duration::BEGIN@10 at line 4 # spent 14µs making 1 call to DateTime::Helpers::BEGIN@4
# spent 5µs making 1 call to warnings::import |
5 | |||||
6 | 1 | 500ns | our $VERSION = '1.27'; | ||
7 | |||||
8 | 2 | 594µs | 1 | 2.00ms | # spent 2.00ms (1.57+426µs) within DateTime::Helpers::BEGIN@8 which was called:
# once (1.57ms+426µs) by DateTime::Duration::BEGIN@10 at line 8 # spent 2.00ms 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 | 3µs | 1; |