Filename | /usr/local/share/perl/5.14.2/DateTime/TimeZone/Floating.pm |
Statements | Executed 16 statements in 672µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 578µs | 3.60ms | BEGIN@12 | DateTime::TimeZone::Floating::
1 | 1 | 1 | 22µs | 22µs | _new_instance | DateTime::TimeZone::Floating::
1 | 1 | 1 | 19µs | 19µs | BEGIN@5 | DateTime::TimeZone::Floating::
1 | 1 | 1 | 16µs | 27µs | BEGIN@10 | DateTime::TimeZone::Floating::
1 | 1 | 1 | 16µs | 23µs | BEGIN@9 | DateTime::TimeZone::Floating::
4 | 2 | 1 | 6µs | 6µs | is_floating | DateTime::TimeZone::Floating::
0 | 0 | 0 | 0s | 0s | STORABLE_thaw | DateTime::TimeZone::Floating::
0 | 0 | 0 | 0s | 0s | new | DateTime::TimeZone::Floating::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package DateTime::TimeZone::Floating; | ||||
2 | { | ||||
3 | 2 | 3µs | $DateTime::TimeZone::Floating::VERSION = '1.63'; | ||
4 | } | ||||
5 | # spent 19µs within DateTime::TimeZone::Floating::BEGIN@5 which was called:
# once (19µs+0s) by DateTime::TimeZone::BEGIN@15 at line 7 | ||||
6 | 1 | 12µs | $DateTime::TimeZone::Floating::AUTHORITY = 'cpan:DROLSKY'; | ||
7 | 1 | 44µs | 1 | 19µs | } # spent 19µs making 1 call to DateTime::TimeZone::Floating::BEGIN@5 |
8 | |||||
9 | 2 | 50µs | 2 | 30µs | # spent 23µs (16+7) within DateTime::TimeZone::Floating::BEGIN@9 which was called:
# once (16µs+7µs) by DateTime::TimeZone::BEGIN@15 at line 9 # spent 23µs making 1 call to DateTime::TimeZone::Floating::BEGIN@9
# spent 7µs making 1 call to strict::import |
10 | 2 | 55µs | 2 | 39µs | # spent 27µs (16+11) within DateTime::TimeZone::Floating::BEGIN@10 which was called:
# once (16µs+11µs) by DateTime::TimeZone::BEGIN@15 at line 10 # spent 27µs making 1 call to DateTime::TimeZone::Floating::BEGIN@10
# spent 12µs making 1 call to warnings::import |
11 | |||||
12 | 2 | 460µs | 2 | 6.49ms | # spent 3.60ms (578µs+3.02) within DateTime::TimeZone::Floating::BEGIN@12 which was called:
# once (578µs+3.02ms) by DateTime::TimeZone::BEGIN@15 at line 12 # spent 3.60ms making 1 call to DateTime::TimeZone::Floating::BEGIN@12
# spent 2.89ms making 1 call to parent::import |
13 | |||||
14 | sub new { | ||||
15 | return shift->instance; | ||||
16 | } | ||||
17 | |||||
18 | # spent 22µs within DateTime::TimeZone::Floating::_new_instance which was called:
# once (22µs+0s) by Class::Singleton::instance at line 58 of Class/Singleton.pm | ||||
19 | 1 | 800ns | my $class = shift; | ||
20 | |||||
21 | 1 | 26µs | return bless { | ||
22 | name => 'floating', | ||||
23 | offset => 0 | ||||
24 | }, $class; | ||||
25 | } | ||||
26 | |||||
27 | 4 | 16µs | # spent 6µs within DateTime::TimeZone::Floating::is_floating which was called 4 times, avg 2µs/call:
# 2 times (4µs+0s) by DateTime::_calc_utc_rd at line 386 of DateTime.pm, avg 2µs/call
# 2 times (3µs+0s) by DateTime::_calc_local_rd at line 427 of DateTime.pm, avg 1µs/call | ||
28 | |||||
29 | sub 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 | |||||
49 | 1 | 5µs | 1; | ||
50 | |||||
51 | # ABSTRACT: A time zone that is always local | ||||
52 | |||||
53 | __END__ |