Filename | /home/s1/perl5/perlbrew/perls/perl-5.22.1/lib/site_perl/5.22.1/DateTime/TimeZone/Floating.pm |
Statements | Executed 14 statements in 584µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 470µs | 2.86ms | BEGIN@6 | DateTime::TimeZone::Floating::
1 | 1 | 1 | 23µs | 26µs | BEGIN@3 | DateTime::TimeZone::Floating::
1 | 1 | 1 | 10µs | 15µs | BEGIN@4 | DateTime::TimeZone::Floating::
1 | 1 | 1 | 5µs | 5µs | _new_instance | DateTime::TimeZone::Floating::
4 | 2 | 1 | 5µs | 5µ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 | 1 | 700ns | $DateTime::TimeZone::Floating::VERSION = '1.98'; | ||
3 | 2 | 31µs | 2 | 29µs | # spent 26µs (23+3) within DateTime::TimeZone::Floating::BEGIN@3 which was called:
# once (23µs+3µs) by DateTime::TimeZone::BEGIN@9 at line 3 # spent 26µs making 1 call to DateTime::TimeZone::Floating::BEGIN@3
# spent 3µs making 1 call to strict::import |
4 | 2 | 33µs | 2 | 21µs | # spent 15µs (10+6) within DateTime::TimeZone::Floating::BEGIN@4 which was called:
# once (10µs+6µs) by DateTime::TimeZone::BEGIN@9 at line 4 # spent 15µs making 1 call to DateTime::TimeZone::Floating::BEGIN@4
# spent 6µs making 1 call to warnings::import |
5 | |||||
6 | 2 | 480µs | 2 | 5.18ms | # spent 2.86ms (470µs+2.39) within DateTime::TimeZone::Floating::BEGIN@6 which was called:
# once (470µs+2.39ms) by DateTime::TimeZone::BEGIN@9 at line 6 # spent 2.86ms making 1 call to DateTime::TimeZone::Floating::BEGIN@6
# spent 2.32ms making 1 call to parent::import |
7 | |||||
8 | sub new { | ||||
9 | return shift->instance; | ||||
10 | } | ||||
11 | |||||
12 | # spent 5µs within DateTime::TimeZone::Floating::_new_instance which was called:
# once (5µs+0s) by Class::Singleton::instance at line 56 of Class/Singleton.pm | ||||
13 | 1 | 400ns | my $class = shift; | ||
14 | |||||
15 | 1 | 9µs | return bless { | ||
16 | name => 'floating', | ||||
17 | offset => 0 | ||||
18 | }, $class; | ||||
19 | } | ||||
20 | |||||
21 | 4 | 26µs | # spent 5µ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 395 of DateTime.pm, avg 2µs/call
# 2 times (2µs+0s) by DateTime::_calc_local_rd at line 442 of DateTime.pm, avg 1µs/call | ||
22 | |||||
23 | sub 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 | |||||
43 | 1 | 4µs | 1; | ||
44 | |||||
45 | # ABSTRACT: A time zone that is always local | ||||
46 | |||||
47 | __END__ |