← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 19:05:14 2015
Reported on Fri Jul 31 19:08:10 2015

Filename/var/www/foswiki11/lib/Foswiki/Infix/Error.pm
StatementsExecuted 8 statements in 325µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11134µs44µsFoswiki::Infix::Error::::BEGIN@14Foswiki::Infix::Error::BEGIN@14
11123µs48µsFoswiki::Infix::Error::::BEGIN@13Foswiki::Infix::Error::BEGIN@13
1118µs8µsFoswiki::Infix::Error::::BEGIN@16Foswiki::Infix::Error::BEGIN@16
0000s0sFoswiki::Infix::Error::::newFoswiki::Infix::Error::new
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::Infix::Error
6
7Class of errors used with Foswiki::Infix::Parser
8
9=cut
10
11package Foswiki::Infix::Error;
12
13257µs272µs
# spent 48µs (23+25) within Foswiki::Infix::Error::BEGIN@13 which was called: # once (23µs+25µs) by Foswiki::Infix::Parser::BEGIN@20 at line 13
use strict;
# spent 48µs making 1 call to Foswiki::Infix::Error::BEGIN@13 # spent 25µs making 1 call to strict::import
14247µs253µs
# spent 44µs (34+10) within Foswiki::Infix::Error::BEGIN@14 which was called: # once (34µs+10µs) by Foswiki::Infix::Parser::BEGIN@20 at line 14
use warnings;
# spent 44µs making 1 call to Foswiki::Infix::Error::BEGIN@14 # spent 10µs making 1 call to warnings::import
15
162200µs18µs
# spent 8µs within Foswiki::Infix::Error::BEGIN@16 which was called: # once (8µs+0s) by Foswiki::Infix::Parser::BEGIN@20 at line 16
use Error ();
# spent 8µs making 1 call to Foswiki::Infix::Error::BEGIN@16
17115µsour @ISA = ('Error');
18
19sub new {
20 my ( $class, $message, $expr, $at ) = @_;
21 if ( defined $expr && length($expr) ) {
22 $message .= " in '$expr'";
23 }
24 if ( defined $at && length($at) ) {
25 $message .= " at '$at'";
26 }
27 return $class->SUPER::new(
28 -text => $message,
29 -file => 'dummy',
30 -line => 'dummy'
31 );
32}
33
3416µs1;
35__END__