Profile of DateTime/TimeZone/Floating.pm

← Index
NYTProf Performance Profile «line view»
For -e
Run on Thu Jun 30 16:34:56 2016
Reported on Thu Jun 30 16:35:09 2016

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 386µs

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 363µs | 2.08ms | DateTime::TimeZone::Floating::::BEGIN@6DateTime::TimeZone::Floating::BEGIN@6
1 | 1 | 1 | 16µs | 19µs | DateTime::TimeZone::Floating::::BEGIN@3DateTime::TimeZone::Floating::BEGIN@3
1 | 1 | 1 | 8µs | 13µs | DateTime::TimeZone::Floating::::BEGIN@4DateTime::TimeZone::Floating::BEGIN@4
1 | 1 | 1 | 4µs | 4µs | DateTime::TimeZone::Floating::::_new_instanceDateTime::TimeZone::Floating::_new_instance
4 | 2 | 1 | 4µs | 4µs | DateTime::TimeZone::Floating::::is_floatingDateTime::TimeZone::Floating::is_floating
0 | 0 | 0 | 0s | 0s | DateTime::TimeZone::Floating::::STORABLE_thawDateTime::TimeZone::Floating::STORABLE_thaw
0 | 0 | 0 | 0s | 0s | DateTime::TimeZone::Floating::::newDateTime::TimeZone::Floating::new

Call graph for these subroutines as a Graphviz dot language file.

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | package DateTime::TimeZone::Floating;
2 | 1 | 400ns |  |  | $DateTime::TimeZone::Floating::VERSION = '1.98';
3 | 2 | 24µs | 2 | 21µs | # spent 19µs (16+3) within DateTime::TimeZone::Floating::BEGIN@3 which was called: # once (16µs+3µs) by DateTime::TimeZone::BEGIN@9 at line 3 use strict; # spent 19µs making 1 call to DateTime::TimeZone::Floating::BEGIN@3 # spent 2µs making 1 call to strict::import
4 | 2 | 26µs | 2 | 18µs | # spent 13µs (8+5) within DateTime::TimeZone::Floating::BEGIN@4 which was called: # once (8µs+5µs) by DateTime::TimeZone::BEGIN@9 at line 4 use warnings; # spent 13µs making 1 call to DateTime::TimeZone::Floating::BEGIN@4 # spent 5µs making 1 call to warnings::import
5 |  |  |  |  |
6 | 2 | 319µs | 2 | 3.73ms | # spent 2.08ms (363µs+1.71) within DateTime::TimeZone::Floating::BEGIN@6 which was called: # once (363µs+1.71ms) by DateTime::TimeZone::BEGIN@9 at line 6 use parent 'Class::Singleton', 'DateTime::TimeZone::OffsetOnly'; # spent 2.08ms making 1 call to DateTime::TimeZone::Floating::BEGIN@6 # spent 1.66ms making 1 call to parent::import
7 |  |  |  |  |
8 |  |  |  |  | sub new {
9 |  |  |  |  | return shift->instance;
10 |  |  |  |  | }
11 |  |  |  |  |
12 |  |  |  |  | # spent 4µs within DateTime::TimeZone::Floating::_new_instance which was called: # once (4µs+0s) by Class::Singleton::instance at line 56 of Class/Singleton.pm sub _new_instance {
13 | 1 | 300ns |  |  | my $class = shift;
14 |  |  |  |  |
15 | 1 | 6µs |  |  | return bless {
16 |  |  |  |  | name => 'floating',
17 |  |  |  |  | offset => 0
18 |  |  |  |  | }, $class;
19 |  |  |  |  | }
20 |  |  |  |  |
21 | 4 | 8µs |  |  | # spent 4µs within DateTime::TimeZone::Floating::is_floating which was called 4 times, avg 900ns/call: # 2 times (2µs+0s) by DateTime::_calc_utc_rd at line 395 of DateTime.pm, avg 1µs/call # 2 times (1µs+0s) by DateTime::_calc_local_rd at line 442 of DateTime.pm, avg 600ns/call sub is_floating {1}
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 | 2µs |  |  | 1;
44 |  |  |  |  |
45 |  |  |  |  | # ABSTRACT: A time zone that is always local
46 |  |  |  |  |
47 |  |  |  |  | __END__