← Index
NYTProf Performance Profile   « block view • line view • sub view »
For xt/tapper-mcp-scheduler-with-db-longrun.t
  Run on Tue May 22 17:18:39 2012
Reported on Tue May 22 17:22:37 2012

Filename/2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/DateTime/TimeZone/UTC.pm
StatementsExecuted 1484 statements in 5.37ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
882211.55ms1.55msDateTime::TimeZone::UTC::::is_utcDateTime::TimeZone::UTC::is_utc
29411672µs672µsDateTime::TimeZone::UTC::::offset_for_datetimeDateTime::TimeZone::UTC::offset_for_datetime
29411635µs635µsDateTime::TimeZone::UTC::::offset_for_local_datetimeDateTime::TimeZone::UTC::offset_for_local_datetime
11113µs13µsDateTime::TimeZone::UTC::::_new_instanceDateTime::TimeZone::UTC::_new_instance
11112µs14µsDateTime::TimeZone::UTC::::BEGIN@6DateTime::TimeZone::UTC::BEGIN@6
1117µs14µsDateTime::TimeZone::UTC::::BEGIN@7DateTime::TimeZone::UTC::BEGIN@7
1117µs28µsDateTime::TimeZone::UTC::::BEGIN@9DateTime::TimeZone::UTC::BEGIN@9
0000s0sDateTime::TimeZone::UTC::::categoryDateTime::TimeZone::UTC::category
0000s0sDateTime::TimeZone::UTC::::is_dst_for_datetimeDateTime::TimeZone::UTC::is_dst_for_datetime
0000s0sDateTime::TimeZone::UTC::::newDateTime::TimeZone::UTC::new
0000s0sDateTime::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
1package DateTime::TimeZone::UTC;
2{
321µs $DateTime::TimeZone::UTC::VERSION = '1.46';
4}
5
6318µs216µs
# spent 14µs (12+2) within DateTime::TimeZone::UTC::BEGIN@6 which was called: # once (12µs+2µs) by DateTime::TimeZone::OffsetOnly::BEGIN@11 at line 6
use strict;
# spent 14µs making 1 call to DateTime::TimeZone::UTC::BEGIN@6 # spent 2µs making 1 call to strict::import
7319µs221µs
# spent 14µs (7+7) within DateTime::TimeZone::UTC::BEGIN@7 which was called: # once (7µs+7µs) by DateTime::TimeZone::OffsetOnly::BEGIN@11 at line 7
use warnings;
# spent 14µs making 1 call to DateTime::TimeZone::UTC::BEGIN@7 # spent 7µs making 1 call to warnings::import
8
93111µs228µs
# spent 28µs (7+21) within DateTime::TimeZone::UTC::BEGIN@9 which was called: # once (7µs+21µs) by DateTime::TimeZone::OffsetOnly::BEGIN@11 at line 9
use parent 'Class::Singleton', 'DateTime::TimeZone';
# spent 28µs making 1 call to DateTime::TimeZone::UTC::BEGIN@9 # spent 21µs making 1 call to parent::import, recursion: max depth 1, sum of overlapping time 21µs
10
11sub new {
12 return shift->instance;
13}
14
15
# spent 13µs within DateTime::TimeZone::UTC::_new_instance which was called: # once (13µs+0s) by Class::Singleton::instance at line 58 of Class/Singleton.pm
sub _new_instance {
16215µs my $class = shift;
17
18 return bless { name => 'UTC' }, $class;
19}
20
21sub is_dst_for_datetime {0}
22
232941.02ms
# spent 672µs within DateTime::TimeZone::UTC::offset_for_datetime which was called 294 times, avg 2µs/call: # 294 times (672µs+0s) by DateTime::offset at line 929 of DateTime.pm, avg 2µs/call
sub offset_for_datetime {0}
242941.09ms
# spent 635µs within DateTime::TimeZone::UTC::offset_for_local_datetime which was called 294 times, avg 2µs/call: # 294 times (635µs+0s) by DateTime::_offset_for_local_datetime at line 932 of DateTime.pm, avg 2µs/call
sub offset_for_local_datetime {0}
25
26sub short_name_for_datetime {'UTC'}
27
28sub category {undef}
29
308823.10ms
# spent 1.55ms within DateTime::TimeZone::UTC::is_utc which was called 882 times, avg 2µs/call: # 588 times (791µs+0s) by DateTime::_calc_local_rd at line 413 of DateTime.pm, avg 1µs/call # 294 times (755µs+0s) by DateTime::_calc_utc_rd at line 372 of DateTime.pm, avg 3µs/call
sub is_utc {1}
31
3212µs1;
33
34# ABSTRACT: The UTC time zone
35
- -
38=pod
39
40=head1 NAME
41
42DateTime::TimeZone::UTC - The UTC time zone
43
44=head1 VERSION
45
46version 1.46
47
48=head1 SYNOPSIS
49
50 my $utc_tz = DateTime::TimeZone::UTC->new;
51
52=head1 DESCRIPTION
53
54This class is used to provide the DateTime::TimeZone API needed by
55DateTime.pm for the UTC time zone, which is not explicitly included in
56the Olson time zone database.
57
58The offset for this object will always be zero.
59
60=head1 USAGE
61
62This class has the same methods as a real time zone object, but the
63C<category()> method returns undef and C<is_utc()> returns true.
64
65=head1 AUTHOR
66
67Dave Rolsky <autarch@urth.org>
68
69=head1 COPYRIGHT AND LICENSE
70
71This software is copyright (c) 2012 by Dave Rolsky.
72
73This is free software; you can redistribute it and/or modify it under
74the same terms as the Perl 5 programming language system itself.
75
76=cut
77
78
79__END__