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

Filename/var/www/foswiki11/lib/Foswiki/ValidationException.pm
StatementsExecuted 8 statements in 160µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11114µs27µsFoswiki::ValidationException::::BEGIN@12Foswiki::ValidationException::BEGIN@12
1119µs14µsFoswiki::ValidationException::::BEGIN@13Foswiki::ValidationException::BEGIN@13
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;
12228µs240µs
# spent 27µs (14+13) within Foswiki::ValidationException::BEGIN@12 which was called: # once (14µs+13µs) by Foswiki::Plugin::BEGIN@16 at line 12
use strict;
# spent 27µs making 1 call to Foswiki::ValidationException::BEGIN@12 # spent 13µs making 1 call to strict::import
13223µs219µs
# spent 14µs (9+5) within Foswiki::ValidationException::BEGIN@13 which was called: # once (9µs+5µs) by Foswiki::Plugin::BEGIN@16 at line 13
use warnings;
# spent 14µs making 1 call to Foswiki::ValidationException::BEGIN@13 # spent 5µs making 1 call to warnings::import
142100µ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=begin TML
18
19---++ ClassMethod new( $action )
20Constructor
21
22=cut
23
24sub new {
25 my ( $class, $action ) = @_;
26 return bless( { action => $action }, $class );
27}
28
29=begin TML
30
31---++ ObjectMethod stringify() -> $string
32
33Generate a summary string. This is mainly for debugging.
34
35=cut
36
37sub stringify {
38 my $this = shift;
39 return
40 "ValidationException ($this->{action}): Key is invalid or has expired";
41}
42
4313µs1;
44__END__