← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/local/src/github.com/foswiki/core/bin/view
  Run on Sun Dec 4 17:17:59 2011
Reported on Sun Dec 4 17:26:35 2011

Filename/usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/OP_d2n.pm
StatementsExecuted 14 statements in 481µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
31165µs159µsFoswiki::Query::OP_d2n::::newFoswiki::Query::OP_d2n::new
11159µs73µsFoswiki::Query::OP_d2n::::BEGIN@11Foswiki::Query::OP_d2n::BEGIN@11
11118µs42µsFoswiki::Query::OP_d2n::::BEGIN@12Foswiki::Query::OP_d2n::BEGIN@12
11111µs11µsFoswiki::Query::OP_d2n::::BEGIN@14Foswiki::Query::OP_d2n::BEGIN@14
0000s0sFoswiki::Query::OP_d2n::::__ANON__[:39]Foswiki::Query::OP_d2n::__ANON__[:39]
0000s0sFoswiki::Query::OP_d2n::::evaluateFoswiki::Query::OP_d2n::evaluate
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# See bottom of file for license and copyright information
2
3=begin TML
4
5---+ package Foswiki::Query::OP_d2n
6
7=cut
8
9package Foswiki::Query::OP_d2n;
10
11275µs287µs
# spent 73µs (59+14) within Foswiki::Query::OP_d2n::BEGIN@11 which was called: # once (59µs+14µs) by Foswiki::Query::Parser::BEGIN@58 at line 11
use strict;
# spent 73µs making 1 call to Foswiki::Query::OP_d2n::BEGIN@11 # spent 14µs making 1 call to strict::import
12274µs265µs
# spent 42µs (18+24) within Foswiki::Query::OP_d2n::BEGIN@12 which was called: # once (18µs+24µs) by Foswiki::Query::Parser::BEGIN@58 at line 12
use warnings;
# spent 42µs making 1 call to Foswiki::Query::OP_d2n::BEGIN@12 # spent 24µs making 1 call to warnings::import
13
142249µs111µs
# spent 11µs within Foswiki::Query::OP_d2n::BEGIN@14 which was called: # once (11µs+0s) by Foswiki::Query::Parser::BEGIN@58 at line 14
use Foswiki::Query::UnaryOP ();
# spent 11µs making 1 call to Foswiki::Query::OP_d2n::BEGIN@14
15118µsour @ISA = ('Foswiki::Query::UnaryOP');
16
17
# spent 159µs (65+94) within Foswiki::Query::OP_d2n::new which was called 3 times, avg 53µs/call: # 3 times (65µs+94µs) by Foswiki::Query::Parser::new at line 105 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/Parser.pm, avg 53µs/call
sub new {
18660µs my $class = shift;
19394µs return $class->SUPER::new( name => 'd2n', prec => 1000 );
# spent 94µs making 3 calls to Foswiki::Query::UnaryOP::new, avg 31µs/call
20}
21
22sub evaluate {
23 my $this = shift;
24 my $node = shift;
25 return $this->evalUnary(
26 $node,
27 sub {
28 my $date = shift;
29
30 if ( defined $date ) {
31 eval {
32 require Foswiki::Time;
33 $date = Foswiki::Time::parseTime( $date, 1 );
34 };
35 }
36
37 # ignore $@
38 return $date;
39 },
40 @_
41 );
42}
43
4417µs1;
45__END__