← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/share/koha/opac/cgi-bin/opac/opac-search.pl
  Run on Tue Oct 15 17:10:45 2013
Reported on Tue Oct 15 17:12:39 2013

Filename/usr/share/perl5/DateTime/Format/Builder/Parser/Quick.pm
StatementsExecuted 15 statements in 368µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11118µs22µsDateTime::Format::Builder::Parser::Quick::::BEGIN@2DateTime::Format::Builder::Parser::Quick::BEGIN@2
11117µs98µsDateTime::Format::Builder::Parser::Quick::::BEGIN@5DateTime::Format::Builder::Parser::Quick::BEGIN@5
11112µs72µsDateTime::Format::Builder::Parser::Quick::::BEGIN@4DateTime::Format::Builder::Parser::Quick::BEGIN@4
1119µs50µsDateTime::Format::Builder::Parser::Quick::::BEGIN@3DateTime::Format::Builder::Parser::Quick::BEGIN@3
0000s0sDateTime::Format::Builder::Parser::Quick::::__ANON__[:68]DateTime::Format::Builder::Parser::Quick::__ANON__[:68]
0000s0sDateTime::Format::Builder::Parser::Quick::::__ANON__[:92]DateTime::Format::Builder::Parser::Quick::__ANON__[:92]
0000s0sDateTime::Format::Builder::Parser::Quick::::create_parserDateTime::Format::Builder::Parser::Quick::create_parser
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package DateTime::Format::Builder::Parser::Quick;
2333µs227µs
# spent 22µs (18+4) within DateTime::Format::Builder::Parser::Quick::BEGIN@2 which was called: # once (18µs+4µs) by DateTime::Format::Builder::Parser::BEGIN@1.5 at line 2
use strict;
# spent 22µs making 1 call to DateTime::Format::Builder::Parser::Quick::BEGIN@2 # spent 4µs making 1 call to strict::import
3339µs292µs
# spent 50µs (9+42) within DateTime::Format::Builder::Parser::Quick::BEGIN@3 which was called: # once (9µs+42µs) by DateTime::Format::Builder::Parser::BEGIN@1.5 at line 3
use vars qw( $VERSION %dispatch_data );
# spent 50µs making 1 call to DateTime::Format::Builder::Parser::Quick::BEGIN@3 # spent 42µs making 1 call to vars::import
4334µs2132µs
# spent 72µs (12+60) within DateTime::Format::Builder::Parser::Quick::BEGIN@4 which was called: # once (12µs+60µs) by DateTime::Format::Builder::Parser::BEGIN@1.5 at line 4
use Params::Validate qw( SCALAR OBJECT CODEREF validate );
# spent 72µs making 1 call to DateTime::Format::Builder::Parser::Quick::BEGIN@4 # spent 60µs making 1 call to Exporter::import
53244µs2178µs
# spent 98µs (17+81) within DateTime::Format::Builder::Parser::Quick::BEGIN@5 which was called: # once (17µs+81µs) by DateTime::Format::Builder::Parser::BEGIN@1.5 at line 5
use base qw( DateTime::Format::Builder::Parser );
# spent 98µs making 1 call to DateTime::Format::Builder::Parser::Quick::BEGIN@5 # spent 81µs making 1 call to base::import
6
7=head1 NAME
8
- -
601700ns$VERSION = '0.77';
61
62__PACKAGE__->valid_params(
63 Quick => {
64 type => SCALAR|OBJECT,
65 callbacks => {
66 good_classname => sub {
67 (ref $_[0]) or ( $_[0] =~ /^\w+[:'\w+]*\w+/ )
68 },
69 }
70 },
71112µs114µs method => {
# spent 14µs making 1 call to DateTime::Format::Builder::Parser::valid_params
72 optional => 1,
73 type => SCALAR|CODEREF,
74 },
75);
76
77sub create_parser
78{
79 my ($self, %args) = @_;
80 my $class = $args{Quick};
81 my $method = $args{method};
82 $method = 'parse_datetime' unless defined $method;
83 eval "use $class";
84 die $@ if $@;
85
86 return sub {
87 my ($self, $date) = @_;
88 return unless defined $date;
89 my $rv = eval { $class->$method( $date ) };
90 return $rv if defined $rv;
91 return;
92 };
93}
94
9515µs1;
96
97__END__