← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 18:42:36 2015
Reported on Fri Jul 31 18:48:14 2015

Filename/var/www/foswikidev/core/lib/Foswiki/Infix/Error.pm
StatementsExecuted 9 statements in 208µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11113µs25µsFoswiki::Infix::Error::::BEGIN@13Foswiki::Infix::Error::BEGIN@13
1119µs13µsFoswiki::Infix::Error::::BEGIN@14Foswiki::Infix::Error::BEGIN@14
1114µs4µsFoswiki::Infix::Error::::BEGIN@19Foswiki::Infix::Error::BEGIN@19
1113µs3µ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
13227µs237µs
# spent 25µs (13+12) within Foswiki::Infix::Error::BEGIN@13 which was called: # once (13µs+12µs) by Foswiki::UI::BEGIN@171 at line 13
use strict;
# spent 25µs making 1 call to Foswiki::Infix::Error::BEGIN@13 # spent 12µs making 1 call to strict::import
14222µs217µs
# spent 13µs (9+4) within Foswiki::Infix::Error::BEGIN@14 which was called: # once (9µs+4µs) by Foswiki::UI::BEGIN@171 at line 14
use warnings;
# spent 13µs making 1 call to Foswiki::Infix::Error::BEGIN@14 # spent 4µs making 1 call to warnings::import
15
16255µs13µs
# spent 3µs within Foswiki::Infix::Error::BEGIN@16 which was called: # once (3µs+0s) by Foswiki::UI::BEGIN@171 at line 16
use Error ();
# spent 3µs making 1 call to Foswiki::Infix::Error::BEGIN@16
1717µsour @ISA = ('Error');
18
19
# spent 4µs within Foswiki::Infix::Error::BEGIN@19 which was called: # once (4µs+0s) by Foswiki::UI::BEGIN@171 at line 24
BEGIN {
2015µs if ( $Foswiki::cfg{UseLocale} ) {
21 require locale;
22 import locale();
23 }
24190µs14µs}
# spent 4µs making 1 call to Foswiki::Infix::Error::BEGIN@19
25
26sub new {
27 my ( $class, $message, $expr, $at ) = @_;
28 if ( defined $expr && length($expr) ) {
29 $message .= " in '$expr'";
30 }
31 if ( defined $at && length($at) ) {
32 $message .= " at '$at'";
33 }
34 return $class->SUPER::new(
35 -text => $message,
36 -file => 'dummy',
37 -line => 'dummy'
38 );
39}
40
4113µs1;
42__END__