| Filename | /usr/share/perl5/DateTime/TimeZone/Floating.pm |
| Statements | Executed 22 statements in 519µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 35µs | 48µs | DateTime::TimeZone::Floating::BEGIN@3 |
| 2 | 1 | 1 | 29µs | 29µs | DateTime::TimeZone::Floating::new |
| 1 | 1 | 1 | 19µs | 129µs | DateTime::TimeZone::Floating::BEGIN@5 |
| 1 | 1 | 1 | 19µs | 4.90ms | DateTime::TimeZone::Floating::BEGIN@9 |
| 1 | 1 | 1 | 18µs | 18µs | DateTime::TimeZone::Floating::BEGIN@8 |
| 4 | 2 | 1 | 11µs | 11µs | DateTime::TimeZone::Floating::is_floating |
| 0 | 0 | 0 | 0s | 0s | DateTime::TimeZone::Floating::STORABLE_thaw |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package DateTime::TimeZone::Floating; | ||||
| 2 | |||||
| 3 | 3 | 68µs | 2 | 60µs | # spent 48µs (35+13) within DateTime::TimeZone::Floating::BEGIN@3 which was called:
# once (35µs+13µs) by DateTime::TimeZone::BEGIN@11 at line 3 # spent 48µs making 1 call to DateTime::TimeZone::Floating::BEGIN@3
# spent 13µs making 1 call to strict::import |
| 4 | |||||
| 5 | 3 | 79µs | 2 | 239µs | # spent 129µs (19+110) within DateTime::TimeZone::Floating::BEGIN@5 which was called:
# once (19µs+110µs) by DateTime::TimeZone::BEGIN@11 at line 5 # spent 129µs making 1 call to DateTime::TimeZone::Floating::BEGIN@5
# spent 110µs making 1 call to vars::import |
| 6 | 1 | 1µs | $VERSION = 0.01; | ||
| 7 | |||||
| 8 | 3 | 64µs | 1 | 18µs | # spent 18µs within DateTime::TimeZone::Floating::BEGIN@8 which was called:
# once (18µs+0s) by DateTime::TimeZone::BEGIN@11 at line 8 # spent 18µs making 1 call to DateTime::TimeZone::Floating::BEGIN@8 |
| 9 | 3 | 255µs | 2 | 9.79ms | # spent 4.90ms (19µs+4.88) within DateTime::TimeZone::Floating::BEGIN@9 which was called:
# once (19µs+4.88ms) by DateTime::TimeZone::BEGIN@11 at line 9 # spent 4.90ms making 1 call to DateTime::TimeZone::Floating::BEGIN@9
# spent 4.88ms making 1 call to base::import |
| 10 | |||||
| 11 | # spent 29µs within DateTime::TimeZone::Floating::new which was called 2 times, avg 14µs/call:
# 2 times (29µs+0s) by DateTime::TimeZone::new at line 48 of DateTime/TimeZone.pm, avg 14µs/call | ||||
| 12 | 4 | 32µs | my $class = shift; | ||
| 13 | |||||
| 14 | return bless { | ||||
| 15 | name => 'floating', | ||||
| 16 | offset => 0 | ||||
| 17 | }, $class; | ||||
| 18 | } | ||||
| 19 | |||||
| 20 | 4 | 16µs | # spent 11µs within DateTime::TimeZone::Floating::is_floating which was called 4 times, avg 3µs/call:
# 2 times (6µs+0s) by DateTime::_calc_utc_rd at line 343 of DateTime.pm, avg 3µs/call
# 2 times (4µs+0s) by DateTime::_calc_local_rd at line 384 of DateTime.pm, avg 2µ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 | 5µs | 1; | ||
| 43 | |||||
| 44 | __END__ |