← 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/ValidationException.pm
StatementsExecuted 9 statements in 204µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11114µs26µsFoswiki::ValidationException::::BEGIN@12Foswiki::ValidationException::BEGIN@12
1119µs13µsFoswiki::ValidationException::::BEGIN@13Foswiki::ValidationException::BEGIN@13
1114µs4µsFoswiki::ValidationException::::BEGIN@17Foswiki::ValidationException::BEGIN@17
1113µs3µsFoswiki::ValidationException::::BEGIN@14Foswiki::ValidationException::BEGIN@14
0000s0sFoswiki::ValidationException::::newFoswiki::ValidationException::new
0000s0sFoswiki::ValidationException::::stringifyFoswiki::ValidationException::stringify
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::ValidationException
6
7Exception used raise a validation error. See also Foswiki::Validation.
8
9=cut
10
11package Foswiki::ValidationException;
12227µs238µs
# spent 26µs (14+12) within Foswiki::ValidationException::BEGIN@12 which was called: # once (14µs+12µs) by Foswiki::Plugin::BEGIN@16 at line 12
use strict;
# spent 26µs making 1 call to Foswiki::ValidationException::BEGIN@12 # spent 12µs making 1 call to strict::import
13222µs217µs
# spent 13µs (9+4) within Foswiki::ValidationException::BEGIN@13 which was called: # once (9µs+4µs) by Foswiki::Plugin::BEGIN@16 at line 13
use warnings;
# spent 13µs making 1 call to Foswiki::ValidationException::BEGIN@13 # spent 4µs making 1 call to warnings::import
14257µs13µs
# spent 3µs within Foswiki::ValidationException::BEGIN@14 which was called: # once (3µs+0s) by Foswiki::Plugin::BEGIN@16 at line 14
use Error ();
# spent 3µs making 1 call to Foswiki::ValidationException::BEGIN@14
1516µsour @ISA = ('Error'); # base class
16
17
# spent 4µs within Foswiki::ValidationException::BEGIN@17 which was called: # once (4µs+0s) by Foswiki::Plugin::BEGIN@16 at line 22
BEGIN {
1815µs if ( $Foswiki::cfg{UseLocale} ) {
19 require locale;
20 import locale();
21 }
22184µs14µs}
# spent 4µs making 1 call to Foswiki::ValidationException::BEGIN@17
23
24=begin TML
25
26---++ ClassMethod new( $action )
27Constructor
28
29=cut
30
31sub new {
32 my ( $class, $action ) = @_;
33 return bless( { action => $action }, $class );
34}
35
36=begin TML
37
38---++ ObjectMethod stringify() -> $string
39
40Generate a summary string. This is mainly for debugging.
41
42=cut
43
44sub stringify {
45 my $this = shift;
46 return
47 "ValidationException ($this->{action}): Key is invalid or has expired";
48}
49
5013µs1;
51__END__