← 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:23:58 2012

Filename/2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/DateTime/TimeZone/Floating.pm
StatementsExecuted 18 statements in 196µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11117µs17µsDateTime::TimeZone::Floating::::_new_instanceDateTime::TimeZone::Floating::_new_instance
11115µs20µsDateTime::TimeZone::Floating::::BEGIN@6DateTime::TimeZone::Floating::BEGIN@6
11110µs29µsDateTime::TimeZone::Floating::::BEGIN@7DateTime::TimeZone::Floating::BEGIN@7
1119µs1.19msDateTime::TimeZone::Floating::::BEGIN@9DateTime::TimeZone::Floating::BEGIN@9
4213µs3µsDateTime::TimeZone::Floating::::is_floatingDateTime::TimeZone::Floating::is_floating
0000s0sDateTime::TimeZone::Floating::::STORABLE_thawDateTime::TimeZone::Floating::STORABLE_thaw
0000s0sDateTime::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
1package DateTime::TimeZone::Floating;
2{
321µs $DateTime::TimeZone::Floating::VERSION = '1.46';
4}
5
6320µs226µs
# spent 20µs (15+5) within DateTime::TimeZone::Floating::BEGIN@6 which was called: # once (15µs+5µs) by DateTime::TimeZone::BEGIN@12 at line 6
use strict;
# spent 20µs making 1 call to DateTime::TimeZone::Floating::BEGIN@6 # spent 6µs making 1 call to strict::import
7322µs249µs
# spent 29µs (10+20) within DateTime::TimeZone::Floating::BEGIN@7 which was called: # once (10µs+20µs) by DateTime::TimeZone::BEGIN@12 at line 7
use warnings;
# spent 29µs making 1 call to DateTime::TimeZone::Floating::BEGIN@7 # spent 20µs making 1 call to warnings::import
8
93124µs22.36ms
# spent 1.19ms (9µs+1.18) within DateTime::TimeZone::Floating::BEGIN@9 which was called: # once (9µs+1.18ms) by DateTime::TimeZone::BEGIN@12 at line 9
use parent 'Class::Singleton', 'DateTime::TimeZone::OffsetOnly';
# spent 1.19ms making 1 call to DateTime::TimeZone::Floating::BEGIN@9 # spent 1.18ms making 1 call to parent::import
10
11sub new {
12 return shift->instance;
13}
14
15
# spent 17µs within DateTime::TimeZone::Floating::_new_instance which was called: # once (17µs+0s) by Class::Singleton::instance at line 58 of Class/Singleton.pm
sub _new_instance {
1611µs my $class = shift;
17
18118µs return bless {
19 name => 'floating',
20 offset => 0
21 }, $class;
22}
23
2448µs
# spent 3µs within DateTime::TimeZone::Floating::is_floating which was called 4 times, avg 825ns/call: # 2 times (2µs+0s) by DateTime::_calc_utc_rd at line 372 of DateTime.pm, avg 950ns/call # 2 times (1µs+0s) by DateTime::_calc_local_rd at line 413 of DateTime.pm, avg 700ns/call
sub is_floating {1}
25
26sub STORABLE_thaw {
27 my $self = shift;
28 my $cloning = shift;
29 my $serialized = shift;
30
31 my $class = ref $self || $self;
32
33 my $obj;
34 if ( $class->isa(__PACKAGE__) ) {
35 $obj = __PACKAGE__->new();
36 }
37 else {
38 $obj = $class->new();
39 }
40
41 %$self = %$obj;
42
43 return $self;
44}
45
4612µs1;
47
48# ABSTRACT: A time zone that is always local
49
- -
52=pod
53
54=head1 NAME
55
56DateTime::TimeZone::Floating - A time zone that is always local
57
58=head1 VERSION
59
60version 1.46
61
62=head1 SYNOPSIS
63
64 my $floating_tz = DateTime::TimeZone::Floating->new;
65
66=head1 DESCRIPTION
67
68This class is used to provide the DateTime::TimeZone API needed by
69DateTime.pm, but for floating times, as defined by the RFC 2445 spec.
70A floating time has no time zone, and has an effective offset of zero.
71
72=head1 USAGE
73
74This class has the same methods as a real time zone object, but the
75C<short_name_for_datetime()>, and C<category()> methods both return
76undef.
77
78=head1 AUTHOR
79
80Dave Rolsky <autarch@urth.org>
81
82=head1 COPYRIGHT AND LICENSE
83
84This software is copyright (c) 2012 by Dave Rolsky.
85
86This is free software; you can redistribute it and/or modify it under
87the same terms as the Perl 5 programming language system itself.
88
89=cut
90
91
92__END__