← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/local/src/github.com/foswiki/core/bin/view
  Run on Sun Dec 4 17:17:59 2011
Reported on Sun Dec 4 17:27:07 2011

Filename/usr/local/src/github.com/foswiki/core/lib/Foswiki/ValidationException.pm
StatementsExecuted 8 statements in 269µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11124µs32µsFoswiki::ValidationException::::BEGIN@12Foswiki::ValidationException::BEGIN@12
11116µs35µsFoswiki::ValidationException::::BEGIN@13Foswiki::ValidationException::BEGIN@13
1119µs9µ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;
12246µs239µs
# spent 32µs (24+8) within Foswiki::ValidationException::BEGIN@12 which was called: # once (24µs+8µs) by Foswiki::Plugin::BEGIN@16 at line 12
use strict;
# spent 32µs making 1 call to Foswiki::ValidationException::BEGIN@12 # spent 8µs making 1 call to strict::import
13243µs253µs
# spent 35µs (16+18) within Foswiki::ValidationException::BEGIN@13 which was called: # once (16µs+18µs) by Foswiki::Plugin::BEGIN@16 at line 13
use warnings;
# spent 35µs making 1 call to Foswiki::ValidationException::BEGIN@13 # spent 18µs making 1 call to warnings::import
142166µs19µs
# spent 9µs within Foswiki::ValidationException::BEGIN@14 which was called: # once (9µs+0s) by Foswiki::Plugin::BEGIN@16 at line 14
use Error ();
# spent 9µs making 1 call to Foswiki::ValidationException::BEGIN@14
1518µ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
4316µs1;
44__END__