Filename | /var/www/foswiki11/lib/Foswiki/Infix/Error.pm |
Statements | Executed 8 statements in 325µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 34µs | 44µs | BEGIN@14 | Foswiki::Infix::Error::
1 | 1 | 1 | 23µs | 48µs | BEGIN@13 | Foswiki::Infix::Error::
1 | 1 | 1 | 8µs | 8µs | BEGIN@16 | Foswiki::Infix::Error::
0 | 0 | 0 | 0s | 0s | new | Foswiki::Infix::Error::
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 | |||||
7 | Class of errors used with Foswiki::Infix::Parser | ||||
8 | |||||
9 | =cut | ||||
10 | |||||
11 | package Foswiki::Infix::Error; | ||||
12 | |||||
13 | 2 | 57µs | 2 | 72µ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 # spent 48µs making 1 call to Foswiki::Infix::Error::BEGIN@13
# spent 25µs making 1 call to strict::import |
14 | 2 | 47µs | 2 | 53µ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 # spent 44µs making 1 call to Foswiki::Infix::Error::BEGIN@14
# spent 10µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 200µs | 1 | 8µ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 # spent 8µs making 1 call to Foswiki::Infix::Error::BEGIN@16 |
17 | 1 | 15µs | our @ISA = ('Error'); | ||
18 | |||||
19 | sub 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 | |||||
34 | 1 | 6µs | 1; | ||
35 | __END__ |