Filename | /usr/lib/perl5/site_perl/5.12.1/DateTime/TimeZone/Floating.pm |
Statements | Executed 22 statements in 1.98ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 5.18ms | 11.9ms | BEGIN@9 | DateTime::TimeZone::Floating::
2 | 1 | 1 | 98µs | 98µs | new | DateTime::TimeZone::Floating::
1 | 1 | 1 | 98µs | 132µs | BEGIN@3 | DateTime::TimeZone::Floating::
1 | 1 | 1 | 52µs | 52µs | BEGIN@8 | DateTime::TimeZone::Floating::
1 | 1 | 1 | 50µs | 345µs | BEGIN@5 | DateTime::TimeZone::Floating::
4 | 2 | 1 | 46µs | 46µs | is_floating | DateTime::TimeZone::Floating::
0 | 0 | 0 | 0s | 0s | STORABLE_thaw | DateTime::TimeZone::Floating::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package DateTime::TimeZone::Floating; | ||||
2 | |||||
3 | 3 | 164µs | 2 | 167µ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 # spent 132µs making 1 call to DateTime::TimeZone::Floating::BEGIN@3
# spent 35µs making 1 call to strict::import |
4 | |||||
5 | 3 | 187µs | 2 | 639µ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 # spent 345µs making 1 call to DateTime::TimeZone::Floating::BEGIN@5
# spent 295µs making 1 call to vars::import |
6 | 1 | 4µs | $VERSION = 0.01; | ||
7 | |||||
8 | 3 | 217µs | 1 | 52µ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 # spent 52µs making 1 call to DateTime::TimeZone::Floating::BEGIN@8 |
9 | 3 | 1.21ms | 2 | 18.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 # 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 | ||||
12 | 4 | 111µs | my $class = shift; | ||
13 | |||||
14 | return bless { | ||||
15 | name => 'floating', | ||||
16 | offset => 0 | ||||
17 | }, $class; | ||||
18 | } | ||||
19 | |||||
20 | 4 | 68µ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 | ||
21 | |||||
22 | sub 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 | |||||
42 | 1 | 16µs | 1; | ||
43 | |||||
44 | __END__ |