| Filename | /usr/local/lib/perl/5.18.2/Moose/Meta/Method/Accessor/Native/Array.pm |
| Statements | Executed 16 statements in 207µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 2 | 1 | 1 | 53µs | 62µs | Moose::Meta::Method::Accessor::Native::Array::_inline_check_var_is_valid_index |
| 1 | 1 | 1 | 11µs | 23µs | Moose::Meta::Method::Accessor::Native::Array::BEGIN@4 |
| 1 | 1 | 1 | 8µs | 5.92ms | Moose::Meta::Method::Accessor::Native::Array::BEGIN@7 |
| 1 | 1 | 1 | 7µs | 93µs | Moose::Meta::Method::Accessor::Native::Array::BEGIN@26 |
| 1 | 1 | 1 | 7µs | 11µs | Moose::Meta::Method::Accessor::Native::Array::BEGIN@5 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Method::Accessor::Native::Array; | ||||
| 2 | 1 | 500ns | our $VERSION = '2.1604'; | ||
| 3 | |||||
| 4 | 2 | 22µs | 2 | 36µ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 # spent 23µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::BEGIN@4
# spent 12µs making 1 call to strict::import |
| 5 | 2 | 19µs | 2 | 15µ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 # 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 | |||||
| 7 | 2 | 113µs | 2 | 11.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 # 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 | ||||
| 10 | 2 | 1µs | my $self = shift; | ||
| 11 | 2 | 2µs | my ($var) = @_; | ||
| 12 | |||||
| 13 | return ( | ||||
| 14 | 2 | 21µs | 4 | 9µ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 | |||||
| 26 | 2 | 25µs | 2 | 180µ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 # 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 | |||||
| 28 | 1 | 3µs | 1; |