← Index
NYTProf Performance Profile   « line view »
For script/ponapi
  Run on Wed Feb 10 15:51:26 2016
Reported on Thu Feb 11 09:43:11 2016

Filename/home/mickey/git_tree/PONAPI/Server/lib/PONAPI/Builder/Errors.pm
StatementsExecuted 8 statements in 235µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11118µs3.09msPONAPI::Builder::Errors::::BEGIN@4PONAPI::Builder::Errors::BEGIN@4
1118µs76µsPONAPI::Builder::Errors::::BEGIN@33PONAPI::Builder::Errors::BEGIN@33
0000s0sPONAPI::Builder::Errors::::__ANON__[lib/PONAPI/Builder/Errors.pm:14]PONAPI::Builder::Errors::__ANON__[lib/PONAPI/Builder/Errors.pm:14]
0000s0sPONAPI::Builder::Errors::::add_errorPONAPI::Builder::Errors::add_error
0000s0sPONAPI::Builder::Errors::::buildPONAPI::Builder::Errors::build
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# ABSTRACT: document builder - errors
2package PONAPI::Builder::Errors;
3
42158µs26.15ms
# spent 3.09ms (18µs+3.07) within PONAPI::Builder::Errors::BEGIN@4 which was called: # once (18µs+3.07ms) by PONAPI::Builder::Document::BEGIN@8 at line 4
use Moose;
# spent 3.09ms making 1 call to PONAPI::Builder::Errors::BEGIN@4 # spent 3.07ms making 1 call to Moose::import
5
612µs17.70mswith 'PONAPI::Builder';
# spent 7.70ms making 1 call to Moose::with
7
8has _errors => (
9 init_arg => undef,
10 traits => [ 'Array' ],
11 is => 'ro',
12 isa => 'ArrayRef[ HashRef ]',
13 lazy => 1,
14 default => sub { +[] },
1517µs111.5ms handles => {
# spent 11.5ms making 1 call to Moose::has
16 'has_errors' => 'count',
17 # private ...
18 '_add_error' => 'push',
19 }
20);
21
22sub add_error {
23 my ( $self, $error ) = @_;
24 $self->_add_error( $error );
25}
26
27sub build {
28 my $self = $_[0];
29 return +[ @{ $self->_errors } ];
30}
31
3216µs22.32ms__PACKAGE__->meta->make_immutable;
# spent 2.30ms making 1 call to Class::MOP::Class::make_immutable # spent 21µs making 1 call to PONAPI::Builder::Errors::meta
33362µs2143µs
# spent 76µs (8+68) within PONAPI::Builder::Errors::BEGIN@33 which was called: # once (8µs+68µs) by PONAPI::Builder::Document::BEGIN@8 at line 33
no Moose; 1;
# spent 76µs making 1 call to PONAPI::Builder::Errors::BEGIN@33 # spent 68µs making 1 call to Moose::unimport
34
35__END__