Profile of DateTime/TimeZone/UTC.pm

← Index
NYTProf Performance Profile «line view»
For -e
Run on Thu Jun 30 16:16:00 2016
Reported on Thu Jun 30 16:16:08 2016

Filename | /home/s1/perl5/perlbrew/perls/perl-5.22.1/lib/site_perl/5.22.1/DateTime/TimeZone/UTC.pm
Statements | Executed 39010 statements in 119ms

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
26000 | 2 | 1 | 11.8ms | 11.8ms | DateTime::TimeZone::UTC::::is_utcDateTime::TimeZone::UTC::is_utc
13000 | 1 | 1 | 6.37ms | 6.37ms | DateTime::TimeZone::UTC::::offset_for_local_datetimeDateTime::TimeZone::UTC::offset_for_local_datetime
1 | 1 | 1 | 28µs | 31µs | DateTime::TimeZone::UTC::::BEGIN@3DateTime::TimeZone::UTC::BEGIN@3
1 | 1 | 1 | 13µs | 22µs | DateTime::TimeZone::UTC::::BEGIN@4DateTime::TimeZone::UTC::BEGIN@4
1 | 1 | 1 | 12µs | 58µs | DateTime::TimeZone::UTC::::BEGIN@6DateTime::TimeZone::UTC::BEGIN@6
1 | 1 | 1 | 4µs | 4µs | DateTime::TimeZone::UTC::::_new_instanceDateTime::TimeZone::UTC::_new_instance
0 | 0 | 0 | 0s | 0s | DateTime::TimeZone::UTC::::categoryDateTime::TimeZone::UTC::category
0 | 0 | 0 | 0s | 0s | DateTime::TimeZone::UTC::::is_dst_for_datetimeDateTime::TimeZone::UTC::is_dst_for_datetime
0 | 0 | 0 | 0s | 0s | DateTime::TimeZone::UTC::::newDateTime::TimeZone::UTC::new
0 | 0 | 0 | 0s | 0s | DateTime::TimeZone::UTC::::offset_for_datetimeDateTime::TimeZone::UTC::offset_for_datetime
0 | 0 | 0 | 0s | 0s | DateTime::TimeZone::UTC::::short_name_for_datetimeDateTime::TimeZone::UTC::short_name_for_datetime

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::UTC;
2 | 1 | 700ns |  |  | $DateTime::TimeZone::UTC::VERSION = '1.98';
3 | 2 | 50µs | 2 | 35µs | # spent 31µs (28+4) within DateTime::TimeZone::UTC::BEGIN@3 which was called: # once (28µs+4µs) by DateTime::TimeZone::OffsetOnly::BEGIN@8 at line 3 use strict; # spent 31µs making 1 call to DateTime::TimeZone::UTC::BEGIN@3 # spent 4µs making 1 call to strict::import
4 | 2 | 41µs | 2 | 30µs | # spent 22µs (13+8) within DateTime::TimeZone::UTC::BEGIN@4 which was called: # once (13µs+8µs) by DateTime::TimeZone::OffsetOnly::BEGIN@8 at line 4 use warnings; # spent 22µs making 1 call to DateTime::TimeZone::UTC::BEGIN@4 # spent 8µs making 1 call to warnings::import
5 |  |  |  |  |
6 | 2 | 211µs | 2 | 58µs | # spent 58µs (12+46) within DateTime::TimeZone::UTC::BEGIN@6 which was called: # once (12µs+46µs) by DateTime::TimeZone::OffsetOnly::BEGIN@8 at line 6 use parent 'Class::Singleton', 'DateTime::TimeZone'; # spent 58µs making 1 call to DateTime::TimeZone::UTC::BEGIN@6 # spent 46µs making 1 call to parent::import, recursion: max depth 1, sum of overlapping time 46µs
7 |  |  |  |  |
8 |  |  |  |  | sub new {
9 |  |  |  |  | return shift->instance;
10 |  |  |  |  | }
11 |  |  |  |  |
12 |  |  |  |  | # spent 4µs within DateTime::TimeZone::UTC::_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 | 500ns |  |  | my $class = shift;
14 |  |  |  |  |
15 | 1 | 7µs |  |  | return bless { name => 'UTC' }, $class;
16 |  |  |  |  | }
17 |  |  |  |  |
18 |  |  |  |  | sub is_dst_for_datetime {0}
19 |  |  |  |  |
20 |  |  |  |  | sub offset_for_datetime {0}
21 | 13000 | 46.2ms |  |  | # spent 6.37ms within DateTime::TimeZone::UTC::offset_for_local_datetime which was called 13000 times, avg 490ns/call: # 13000 times (6.37ms+0s) by DateTime::_offset_for_local_datetime at line 985 of DateTime.pm, avg 490ns/call sub offset_for_local_datetime {0}
22 |  |  |  |  |
23 |  |  |  |  | sub short_name_for_datetime {'UTC'}
24 |  |  |  |  |
25 |  |  |  |  | sub category {undef}
26 |  |  |  |  |
27 | 26000 | 72.5ms |  |  | # spent 11.8ms within DateTime::TimeZone::UTC::is_utc which was called 26000 times, avg 453ns/call: # 13000 times (6.72ms+0s) by DateTime::_calc_utc_rd at line 395 of DateTime.pm, avg 517ns/call # 13000 times (5.05ms+0s) by DateTime::_calc_local_rd at line 442 of DateTime.pm, avg 389ns/call sub is_utc {1}
28 |  |  |  |  |
29 | 1 | 5µs |  |  | 1;
30 |  |  |  |  |
31 |  |  |  |  | # ABSTRACT: The UTC time zone
32 |  |  |  |  |
33 |  |  |  |  | __END__