Filename | /usr/local/share/perl/5.14.2/DateTime/TimeZone/Floating.pm |
Statements | Executed 16 statements in 313µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 260µs | 1.61ms | BEGIN@12 | DateTime::TimeZone::Floating::
1 | 1 | 1 | 10µs | 10µs | BEGIN@5 | DateTime::TimeZone::Floating::
1 | 1 | 1 | 10µs | 10µs | _new_instance | DateTime::TimeZone::Floating::
1 | 1 | 1 | 7µs | 10µs | BEGIN@9 | DateTime::TimeZone::Floating::
1 | 1 | 1 | 7µs | 12µs | BEGIN@10 | DateTime::TimeZone::Floating::
4 | 2 | 1 | 3µs | 3µ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 | 1µs | $DateTime::TimeZone::Floating::VERSION = '1.63'; | ||
4 | } | ||||
5 | # spent 10µs within DateTime::TimeZone::Floating::BEGIN@5 which was called:
# once (10µs+0s) by DateTime::TimeZone::BEGIN@15 at line 7 | ||||
6 | 1 | 5µs | $DateTime::TimeZone::Floating::AUTHORITY = 'cpan:DROLSKY'; | ||
7 | 1 | 32µs | 1 | 10µs | } # spent 10µs making 1 call to DateTime::TimeZone::Floating::BEGIN@5 |
8 | |||||
9 | 2 | 21µs | 2 | 13µs | # spent 10µs (7+3) within DateTime::TimeZone::Floating::BEGIN@9 which was called:
# once (7µs+3µs) by DateTime::TimeZone::BEGIN@15 at line 9 # spent 10µs making 1 call to DateTime::TimeZone::Floating::BEGIN@9
# spent 3µs making 1 call to strict::import |
10 | 2 | 23µs | 2 | 17µs | # spent 12µs (7+5) within DateTime::TimeZone::Floating::BEGIN@10 which was called:
# once (7µs+5µs) by DateTime::TimeZone::BEGIN@15 at line 10 # spent 12µs making 1 call to DateTime::TimeZone::Floating::BEGIN@10
# spent 5µs making 1 call to warnings::import |
11 | |||||
12 | 2 | 210µs | 2 | 2.90ms | # spent 1.61ms (260µs+1.35) within DateTime::TimeZone::Floating::BEGIN@12 which was called:
# once (260µs+1.35ms) by DateTime::TimeZone::BEGIN@15 at line 12 # spent 1.61ms making 1 call to DateTime::TimeZone::Floating::BEGIN@12
# spent 1.29ms making 1 call to parent::import |
13 | |||||
14 | sub new { | ||||
15 | return shift->instance; | ||||
16 | } | ||||
17 | |||||
18 | # spent 10µs within DateTime::TimeZone::Floating::_new_instance which was called:
# once (10µs+0s) by Class::Singleton::instance at line 58 of Class/Singleton.pm | ||||
19 | 2 | 12µs | my $class = shift; | ||
20 | |||||
21 | return bless { | ||||
22 | name => 'floating', | ||||
23 | offset => 0 | ||||
24 | }, $class; | ||||
25 | } | ||||
26 | |||||
27 | 4 | 7µs | # spent 3µs within DateTime::TimeZone::Floating::is_floating which was called 4 times, avg 700ns/call:
# 2 times (2µs+0s) by DateTime::_calc_utc_rd at line 386 of DateTime.pm, avg 750ns/call
# 2 times (1µs+0s) by DateTime::_calc_local_rd at line 427 of DateTime.pm, avg 650ns/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 | 2µs | 1; | ||
50 | |||||
51 | # ABSTRACT: A time zone that is always local | ||||
52 | |||||
53 | __END__ |