← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Sun Aug 5 15:24:32 2012
Reported on Sun Aug 5 15:24:49 2012

Filename/usr/lib/perl5/site_perl/5.12.1/DateTime/TimeZone/Floating.pm
StatementsExecuted 22 statements in 1.98ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1115.18ms11.9msDateTime::TimeZone::Floating::::BEGIN@9DateTime::TimeZone::Floating::BEGIN@9
21198µs98µsDateTime::TimeZone::Floating::::newDateTime::TimeZone::Floating::new
11198µs132µsDateTime::TimeZone::Floating::::BEGIN@3DateTime::TimeZone::Floating::BEGIN@3
11152µs52µsDateTime::TimeZone::Floating::::BEGIN@8DateTime::TimeZone::Floating::BEGIN@8
11150µs345µsDateTime::TimeZone::Floating::::BEGIN@5DateTime::TimeZone::Floating::BEGIN@5
42146µs46µ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
33164µs2167µs
# spent 132µs (98+35) within DateTime::TimeZone::Floating::BEGIN@3 which was called: # once (98µs+35µs) by DateTime::TimeZone::BEGIN@11 at line 3
use strict;
# spent 132µs making 1 call to DateTime::TimeZone::Floating::BEGIN@3 # spent 35µs making 1 call to strict::import
4
53187µs2639µs
# spent 345µs (50+295) within DateTime::TimeZone::Floating::BEGIN@5 which was called: # once (50µs+295µs) by DateTime::TimeZone::BEGIN@11 at line 5
use vars qw ($VERSION @ISA);
# spent 345µs making 1 call to DateTime::TimeZone::Floating::BEGIN@5 # spent 295µs making 1 call to vars::import
614µs$VERSION = 0.01;
7
83217µs152µs
# spent 52µs within DateTime::TimeZone::Floating::BEGIN@8 which was called: # once (52µs+0s) by DateTime::TimeZone::BEGIN@11 at line 8
use DateTime::TimeZone;
# spent 52µs making 1 call to DateTime::TimeZone::Floating::BEGIN@8
931.21ms218.3ms
# spent 11.9ms (5.18+6.75) within DateTime::TimeZone::Floating::BEGIN@9 which was called: # once (5.18ms+6.75ms) by DateTime::TimeZone::BEGIN@11 at line 9
use base 'DateTime::TimeZone::OffsetOnly';
# spent 11.9ms making 1 call to DateTime::TimeZone::Floating::BEGIN@9 # spent 6.38ms making 1 call to base::import
10
11
# spent 98µs within DateTime::TimeZone::Floating::new which was called 2 times, avg 49µs/call: # 2 times (98µs+0s) by DateTime::TimeZone::new at line 48 of DateTime/TimeZone.pm, avg 49µs/call
sub new {
124111µs my $class = shift;
13
14 return bless {
15 name => 'floating',
16 offset => 0
17 }, $class;
18}
19
20468µs
# spent 46µs within DateTime::TimeZone::Floating::is_floating which was called 4 times, avg 11µs/call: # 2 times (24µs+0s) by DateTime::_calc_utc_rd at line 370 of DateTime.pm, avg 12µs/call # 2 times (22µs+0s) by DateTime::_calc_local_rd at line 411 of DateTime.pm, avg 11µs/call
sub is_floating {1}
21
22sub STORABLE_thaw {
23 my $self = shift;
24 my $cloning = shift;
25 my $serialized = shift;
26
27 my $class = ref $self || $self;
28
29 my $obj;
30 if ( $class->isa(__PACKAGE__) ) {
31 $obj = __PACKAGE__->new();
32 }
33 else {
34 $obj = $class->new();
35 }
36
37 %$self = %$obj;
38
39 return $self;
40}
41
42116µs1;
43
44__END__