← Index
NYTProf Performance Profile   « line view »
For -e
  Run on Thu Jun 30 16:16:00 2016
Reported on Thu Jun 30 16:16:08 2016

Filename/home/s1/perl5/perlbrew/perls/perl-5.22.1/lib/site_perl/5.22.1/x86_64-linux/DateTime/Helpers.pm
StatementsExecuted 8 statements in 839µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.00ms2.52msDateTime::Helpers::::BEGIN@8DateTime::Helpers::BEGIN@8
11136µs41µsDateTime::Helpers::::BEGIN@3DateTime::Helpers::BEGIN@3
11115µs23µsDateTime::Helpers::::BEGIN@4DateTime::Helpers::BEGIN@4
0000s0sDateTime::Helpers::::canDateTime::Helpers::can
0000s0sDateTime::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
1package DateTime::Helpers;
2
3242µs246µ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
use strict;
# spent 41µs making 1 call to DateTime::Helpers::BEGIN@3 # spent 4µs making 1 call to strict::import
4253µs232µ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
use warnings;
# spent 23µs making 1 call to DateTime::Helpers::BEGIN@4 # spent 8µs making 1 call to warnings::import
5
61700nsour $VERSION = '1.27';
7
82739µs12.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
use Scalar::Util ();
# spent 2.52ms making 1 call to DateTime::Helpers::BEGIN@8
9
10sub can {
11 my $object = shift;
12 my $method = shift;
13
14 return unless Scalar::Util::blessed($object);
15 return $object->can($method);
16}
17
18sub isa {
19 my $object = shift;
20 my $method = shift;
21
22 return unless Scalar::Util::blessed($object);
23 return $object->isa($method);
24}
25
2614µs1;