← 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:47 2015

Filename/usr/share/perl5/DateTime/TimeZone/Floating.pm
StatementsExecuted 14 statements in 1.27ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1111.26ms16.8msDateTime::TimeZone::Floating::::BEGIN@6DateTime::TimeZone::Floating::BEGIN@6
11113µs27µsDateTime::TimeZone::Floating::::BEGIN@3DateTime::TimeZone::Floating::BEGIN@3
1118µs14µsDateTime::TimeZone::Floating::::BEGIN@4DateTime::TimeZone::Floating::BEGIN@4
1114µs4µsDateTime::TimeZone::Floating::::_new_instanceDateTime::TimeZone::Floating::_new_instance
4212µs2µsDateTime::TimeZone::Floating::::is_floatingDateTime::TimeZone::Floating::is_floating
0000s0sDateTime::TimeZone::Floating::::STORABLE_thawDateTime::TimeZone::Floating::STORABLE_thaw
0000s0sDateTime::TimeZone::Floating::::newDateTime::TimeZone::Floating::new
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package DateTime::TimeZone::Floating;
21300ns$DateTime::TimeZone::Floating::VERSION = '1.75';
3228µs241µs
# spent 27µs (13+14) within DateTime::TimeZone::Floating::BEGIN@3 which was called: # once (13µs+14µs) by DateTime::TimeZone::BEGIN@11 at line 3
use strict;
# spent 27µs making 1 call to DateTime::TimeZone::Floating::BEGIN@3 # spent 14µs making 1 call to strict::import
4228µs220µs
# spent 14µs (8+6) within DateTime::TimeZone::Floating::BEGIN@4 which was called: # once (8µs+6µs) by DateTime::TimeZone::BEGIN@11 at line 4
use warnings;
# spent 14µs making 1 call to DateTime::TimeZone::Floating::BEGIN@4 # spent 6µs making 1 call to warnings::import
5
621.20ms232.3ms
# spent 16.8ms (1.26+15.5) within DateTime::TimeZone::Floating::BEGIN@6 which was called: # once (1.26ms+15.5ms) by DateTime::TimeZone::BEGIN@11 at line 6
use parent 'Class::Singleton', 'DateTime::TimeZone::OffsetOnly';
# spent 16.8ms making 1 call to DateTime::TimeZone::Floating::BEGIN@6 # spent 15.5ms making 1 call to parent::import
7
8sub new {
9 return shift->instance;
10}
11
12
# spent 4µs within DateTime::TimeZone::Floating::_new_instance which was called: # once (4µs+0s) by Class::Singleton::instance at line 58 of Class/Singleton.pm
sub _new_instance {
131400ns my $class = shift;
14
1515µs return bless {
16 name => 'floating',
17 offset => 0
18 }, $class;
19}
20
2145µs
# spent 2µs within DateTime::TimeZone::Floating::is_floating which was called 4 times, avg 600ns/call: # 2 times (2µs+0s) by DateTime::_calc_utc_rd at line 389 of DateTime.pm, avg 850ns/call # 2 times (700ns+0s) by DateTime::_calc_local_rd at line 436 of DateTime.pm, avg 350ns/call
sub is_floating {1}
22
23sub STORABLE_thaw {
24 my $self = shift;
25 my $cloning = shift;
26 my $serialized = shift;
27
28 my $class = ref $self || $self;
29
30 my $obj;
31 if ( $class->isa(__PACKAGE__) ) {
32 $obj = __PACKAGE__->new();
33 }
34 else {
35 $obj = $class->new();
36 }
37
38 %$self = %$obj;
39
40 return $self;
41}
42
4312µs1;
44
45# ABSTRACT: A time zone that is always local
46
47__END__