← Index
NYTProf Performance Profile   « block view • line view • sub view »
For mongo_pain.pl
  Run on Fri Mar 25 17:00:29 2011
Reported on Fri Mar 25 17:07:08 2011

Filename/usr/local/share/perl/5.10.1/DateTime/TimeZone/Floating.pm
StatementsExecuted 22 statements in 475µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111364µs1.80msDateTime::TimeZone::Floating::::BEGIN@10DateTime::TimeZone::Floating::BEGIN@10
21123µs23µsDateTime::TimeZone::Floating::::newDateTime::TimeZone::Floating::new
11112µs24µsDateTime::TimeZone::Floating::::BEGIN@7DateTime::TimeZone::Floating::BEGIN@7
11112µs12µsDateTime::TimeZone::Floating::::BEGIN@2DateTime::TimeZone::Floating::BEGIN@2
11112µs12µsDateTime::TimeZone::Floating::::BEGIN@9DateTime::TimeZone::Floating::BEGIN@9
11110µs14µsDateTime::TimeZone::Floating::::BEGIN@6DateTime::TimeZone::Floating::BEGIN@6
4216µs6µsDateTime::TimeZone::Floating::::is_floatingDateTime::TimeZone::Floating::is_floating
0000s0sDateTime::TimeZone::Floating::::STORABLE_thawDateTime::TimeZone::Floating::STORABLE_thaw
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
# spent 12µs within DateTime::TimeZone::Floating::BEGIN@2 which was called: # once (12µs+0s) by DateTime::TimeZone::BEGIN@12 at line 4
BEGIN {
316µs $DateTime::TimeZone::Floating::VERSION = '1.31';
4129µs112µs}
# spent 12µs making 1 call to DateTime::TimeZone::Floating::BEGIN@2
5
6332µs217µs
# spent 14µs (10+3) within DateTime::TimeZone::Floating::BEGIN@6 which was called: # once (10µs+3µs) by DateTime::TimeZone::BEGIN@12 at line 6
use strict;
# spent 14µs making 1 call to DateTime::TimeZone::Floating::BEGIN@6 # spent 3µs making 1 call to strict::import
7334µs237µs
# spent 24µs (12+12) within DateTime::TimeZone::Floating::BEGIN@7 which was called: # once (12µs+12µs) by DateTime::TimeZone::BEGIN@12 at line 7
use warnings;
# spent 24µs making 1 call to DateTime::TimeZone::Floating::BEGIN@7 # spent 12µs making 1 call to warnings::import
8
9340µs112µs
# spent 12µs within DateTime::TimeZone::Floating::BEGIN@9 which was called: # once (12µs+0s) by DateTime::TimeZone::BEGIN@12 at line 9
use DateTime::TimeZone;
# spent 12µs making 1 call to DateTime::TimeZone::Floating::BEGIN@9
103292µs23.15ms
# spent 1.80ms (364µs+1.43) within DateTime::TimeZone::Floating::BEGIN@10 which was called: # once (364µs+1.43ms) by DateTime::TimeZone::BEGIN@12 at line 10
use parent 'DateTime::TimeZone::OffsetOnly';
# spent 1.80ms making 1 call to DateTime::TimeZone::Floating::BEGIN@10 # spent 1.35ms making 1 call to parent::import
11
12
# spent 23µs within DateTime::TimeZone::Floating::new which was called 2 times, avg 12µs/call: # 2 times (23µs+0s) by DateTime::TimeZone::new at line 49 of DateTime/TimeZone.pm, avg 12µs/call
sub new {
13427µs my $class = shift;
14
15 return bless {
16 name => 'floating',
17 offset => 0
18 }, $class;
19}
20
21412µs
# spent 6µs within DateTime::TimeZone::Floating::is_floating which was called 4 times, avg 1µs/call: # 2 times (3µs+0s) by DateTime::_calc_utc_rd at line 368 of DateTime.pm, avg 1µs/call # 2 times (3µs+0s) by DateTime::_calc_local_rd at line 409 of DateTime.pm, avg 1µs/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
- -
49=pod
50
- -
89__END__