← Index
NYTProf Performance Profile   « block view • line view • sub view »
For mentat.storage.mongo.pl
  Run on Tue Jun 24 10:04:38 2014
Reported on Tue Jun 24 10:05:06 2014

Filename/usr/local/share/perl/5.14.2/DateTime/TimeZone/Floating.pm
StatementsExecuted 16 statements in 313µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111260µs1.61msDateTime::TimeZone::Floating::::BEGIN@12DateTime::TimeZone::Floating::BEGIN@12
11110µs10µsDateTime::TimeZone::Floating::::BEGIN@5DateTime::TimeZone::Floating::BEGIN@5
11110µs10µsDateTime::TimeZone::Floating::::_new_instanceDateTime::TimeZone::Floating::_new_instance
1117µs10µsDateTime::TimeZone::Floating::::BEGIN@9DateTime::TimeZone::Floating::BEGIN@9
1117µs12µsDateTime::TimeZone::Floating::::BEGIN@10DateTime::TimeZone::Floating::BEGIN@10
4213µs3µ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;
2{
321µs $DateTime::TimeZone::Floating::VERSION = '1.63';
4}
5
# spent 10µs within DateTime::TimeZone::Floating::BEGIN@5 which was called: # once (10µs+0s) by DateTime::TimeZone::BEGIN@15 at line 7
BEGIN {
615µs $DateTime::TimeZone::Floating::AUTHORITY = 'cpan:DROLSKY';
7132µs110µs}
# spent 10µs making 1 call to DateTime::TimeZone::Floating::BEGIN@5
8
9221µs213µs
# spent 10µs (7+3) within DateTime::TimeZone::Floating::BEGIN@9 which was called: # once (7µs+3µs) by DateTime::TimeZone::BEGIN@15 at line 9
use strict;
# spent 10µs making 1 call to DateTime::TimeZone::Floating::BEGIN@9 # spent 3µs making 1 call to strict::import
10223µs217µs
# spent 12µs (7+5) within DateTime::TimeZone::Floating::BEGIN@10 which was called: # once (7µs+5µs) by DateTime::TimeZone::BEGIN@15 at line 10
use warnings;
# spent 12µs making 1 call to DateTime::TimeZone::Floating::BEGIN@10 # spent 5µs making 1 call to warnings::import
11
122210µs22.90ms
# spent 1.61ms (260µs+1.35) within DateTime::TimeZone::Floating::BEGIN@12 which was called: # once (260µs+1.35ms) by DateTime::TimeZone::BEGIN@15 at line 12
use parent 'Class::Singleton', 'DateTime::TimeZone::OffsetOnly';
# spent 1.61ms making 1 call to DateTime::TimeZone::Floating::BEGIN@12 # spent 1.29ms making 1 call to parent::import
13
14sub new {
15 return shift->instance;
16}
17
18
# spent 10µs within DateTime::TimeZone::Floating::_new_instance which was called: # once (10µs+0s) by Class::Singleton::instance at line 58 of Class/Singleton.pm
sub _new_instance {
19212µs my $class = shift;
20
21 return bless {
22 name => 'floating',
23 offset => 0
24 }, $class;
25}
26
2747µs
# spent 3µs within DateTime::TimeZone::Floating::is_floating which was called 4 times, avg 700ns/call: # 2 times (2µs+0s) by DateTime::_calc_utc_rd at line 386 of DateTime.pm, avg 750ns/call # 2 times (1µs+0s) by DateTime::_calc_local_rd at line 427 of DateTime.pm, avg 650ns/call
sub is_floating {1}
28
29sub STORABLE_thaw {
30 my $self = shift;
31 my $cloning = shift;
32 my $serialized = shift;
33
34 my $class = ref $self || $self;
35
36 my $obj;
37 if ( $class->isa(__PACKAGE__) ) {
38 $obj = __PACKAGE__->new();
39 }
40 else {
41 $obj = $class->new();
42 }
43
44 %$self = %$obj;
45
46 return $self;
47}
48
4912µs1;
50
51# ABSTRACT: A time zone that is always local
52
53__END__