← Index
NYTProf Performance Profile   « line view »
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:48 2015

Filename/usr/lib/x86_64-linux-gnu/perl5/5.20/DateTime/Helpers.pm
StatementsExecuted 8 statements in 130µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11112µs22µsDateTime::Helpers::::BEGIN@3DateTime::Helpers::BEGIN@3
1116µs10µsDateTime::Helpers::::BEGIN@4DateTime::Helpers::BEGIN@4
1113µs3µsDateTime::Helpers::::BEGIN@6DateTime::Helpers::BEGIN@6
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;
21400ns$DateTime::Helpers::VERSION = '1.12';
3220µs232µs
# spent 22µs (12+10) within DateTime::Helpers::BEGIN@3 which was called: # once (12µs+10µs) by DateTime::Duration::BEGIN@8 at line 3
use strict;
# spent 22µs making 1 call to DateTime::Helpers::BEGIN@3 # spent 10µs making 1 call to strict::import
4222µs213µs
# spent 10µs (6+4) within DateTime::Helpers::BEGIN@4 which was called: # once (6µs+4µs) by DateTime::Duration::BEGIN@8 at line 4
use warnings;
# spent 10µs making 1 call to DateTime::Helpers::BEGIN@4 # spent 4µs making 1 call to warnings::import
5
6285µs13µs
# spent 3µs within DateTime::Helpers::BEGIN@6 which was called: # once (3µs+0s) by DateTime::Duration::BEGIN@8 at line 6
use Scalar::Util ();
# spent 3µs making 1 call to DateTime::Helpers::BEGIN@6
7
8sub can {
9 my $object = shift;
10 my $method = shift;
11
12 return unless Scalar::Util::blessed($object);
13 return $object->can($method);
14}
15
16sub isa {
17 my $object = shift;
18 my $method = shift;
19
20 return unless Scalar::Util::blessed($object);
21 return $object->isa($method);
22}
23
2412µs1;