Profile of DateTime/Helpers.pm

← Index
NYTProf Performance Profile «line view»
For -e
Run on Thu Jun 30 16:34:56 2016
Reported on Thu Jun 30 16:35:09 2016

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

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 1.57ms | 2.00ms | DateTime::Helpers::::BEGIN@8DateTime::Helpers::BEGIN@8
1 | 1 | 1 | 19µs | 22µs | DateTime::Helpers::::BEGIN@3DateTime::Helpers::BEGIN@3
1 | 1 | 1 | 10µs | 14µs | DateTime::Helpers::::BEGIN@4DateTime::Helpers::BEGIN@4
0 | 0 | 0 | 0s | 0s | DateTime::Helpers::::canDateTime::Helpers::can
0 | 0 | 0 | 0s | 0s | DateTime::Helpers::::isaDateTime::Helpers::isa

Call graph for these subroutines as a Graphviz dot language file.

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 use strict; # 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 use warnings; # 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 use Scalar::Util (); # 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;