← 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/usr/local/lib/perl/5.18.2/Moose/Meta/Method/Accessor/Native/Array.pm
StatementsExecuted 16 statements in 207µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
21153µs62µsMoose::Meta::Method::Accessor::Native::Array::::_inline_check_var_is_valid_indexMoose::Meta::Method::Accessor::Native::Array::_inline_check_var_is_valid_index
11111µs23µsMoose::Meta::Method::Accessor::Native::Array::::BEGIN@4Moose::Meta::Method::Accessor::Native::Array::BEGIN@4
1118µs5.92msMoose::Meta::Method::Accessor::Native::Array::::BEGIN@7Moose::Meta::Method::Accessor::Native::Array::BEGIN@7
1117µs93µsMoose::Meta::Method::Accessor::Native::Array::::BEGIN@26Moose::Meta::Method::Accessor::Native::Array::BEGIN@26
1117µs11µsMoose::Meta::Method::Accessor::Native::Array::::BEGIN@5Moose::Meta::Method::Accessor::Native::Array::BEGIN@5
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Moose::Meta::Method::Accessor::Native::Array;
21500nsour $VERSION = '2.1604';
3
4222µs236µs
# spent 23µs (11+12) within Moose::Meta::Method::Accessor::Native::Array::BEGIN@4 which was called: # once (11µs+12µs) by Module::Runtime::require_module at line 4
use strict;
# spent 23µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::BEGIN@4 # spent 12µs making 1 call to strict::import
5219µs215µs
# spent 11µs (7+4) within Moose::Meta::Method::Accessor::Native::Array::BEGIN@5 which was called: # once (7µs+4µs) by Module::Runtime::require_module at line 5
use warnings;
# spent 11µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::BEGIN@5 # spent 4µs making 1 call to warnings::import
6
72113µs211.8ms
# spent 5.92ms (8µs+5.91) within Moose::Meta::Method::Accessor::Native::Array::BEGIN@7 which was called: # once (8µs+5.91ms) by Module::Runtime::require_module at line 7
use Moose::Role;
# spent 5.92ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::BEGIN@7 # spent 5.91ms making 1 call to Moose::Role::import
8
9
# spent 62µs (53+9) within Moose::Meta::Method::Accessor::Native::Array::_inline_check_var_is_valid_index which was called 2 times, avg 31µs/call: # 2 times (53µs+9µs) by Moose::Meta::Method::Accessor::Native::Array::get::_inline_check_arguments at line 21 of Moose/Meta/Method/Accessor/Native/Array/get.pm, avg 31µs/call
sub _inline_check_var_is_valid_index {
1021µs my $self = shift;
1122µs my ($var) = @_;
12
13 return (
14221µs49µs 'if (!defined(' . $var . ') || ' . $var . ' !~ /^-?\d+$/) {',
# spent 6µs making 2 calls to Class::MOP::Method::Accessor::_inline_throw_exception, avg 3µs/call # spent 3µs making 2 calls to Moose::Meta::Method::Delegation::delegate_to_method, avg 1µs/call
15 $self->_inline_throw_exception( InvalidArgumentToMethod =>
16 'argument => '.$var.','.
17 'method_name => "'.$self->delegate_to_method.'",'.
18 'type_of_argument => "integer",'.
19 'type => "Int",'.
20 'argument_noun => "index"',
21 ) . ';',
22 '}',
23 );
24}
25
26225µs2180µs
# spent 93µs (7+86) within Moose::Meta::Method::Accessor::Native::Array::BEGIN@26 which was called: # once (7µs+86µs) by Module::Runtime::require_module at line 26
no Moose::Role;
# spent 93µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::BEGIN@26 # spent 86µs making 1 call to Moose::Role::unimport
27
2813µs1;