Filename | /usr/local/lib/perl/5.18.2/Moose/Meta/Method/Accessor/Native/Array/get.pm |
Statements | Executed 25 statements in 244µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 13µs | 28µs | BEGIN@4 | Moose::Meta::Method::Accessor::Native::Array::get::
2 | 1 | 1 | 9µs | 72µs | _inline_check_arguments | Moose::Meta::Method::Accessor::Native::Array::get::
1 | 1 | 1 | 8µs | 2.25ms | BEGIN@9 | Moose::Meta::Method::Accessor::Native::Array::get::
1 | 1 | 1 | 7µs | 16µs | BEGIN@5 | Moose::Meta::Method::Accessor::Native::Array::get::
2 | 1 | 1 | 6µs | 6µs | _maximum_arguments | Moose::Meta::Method::Accessor::Native::Array::get::
2 | 1 | 1 | 6µs | 6µs | _return_value | Moose::Meta::Method::Accessor::Native::Array::get::
1 | 1 | 1 | 5µs | 5µs | BEGIN@7 | Moose::Meta::Method::Accessor::Native::Array::get::
2 | 1 | 1 | 4µs | 4µs | _minimum_arguments | Moose::Meta::Method::Accessor::Native::Array::get::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Moose::Meta::Method::Accessor::Native::Array::get; | ||||
2 | 1 | 400ns | our $VERSION = '2.1604'; | ||
3 | |||||
4 | 2 | 25µs | 2 | 44µs | # spent 28µs (13+15) within Moose::Meta::Method::Accessor::Native::Array::get::BEGIN@4 which was called:
# once (13µs+15µs) by Module::Runtime::require_module at line 4 # spent 28µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::get::BEGIN@4
# spent 15µs making 1 call to strict::import |
5 | 2 | 20µs | 2 | 25µs | # spent 16µs (7+9) within Moose::Meta::Method::Accessor::Native::Array::get::BEGIN@5 which was called:
# once (7µs+9µs) by Module::Runtime::require_module at line 5 # spent 16µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::get::BEGIN@5
# spent 9µs making 1 call to warnings::import |
6 | |||||
7 | 2 | 23µs | 1 | 5µs | # spent 5µs within Moose::Meta::Method::Accessor::Native::Array::get::BEGIN@7 which was called:
# once (5µs+0s) by Module::Runtime::require_module at line 7 # spent 5µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::get::BEGIN@7 |
8 | |||||
9 | 2 | 129µs | 2 | 4.50ms | # spent 2.25ms (8µs+2.24) within Moose::Meta::Method::Accessor::Native::Array::get::BEGIN@9 which was called:
# once (8µs+2.24ms) by Module::Runtime::require_module at line 9 # spent 2.25ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::get::BEGIN@9
# spent 2.24ms making 1 call to Moose::Role::import |
10 | |||||
11 | 1 | 3µs | 1 | 9.89ms | with 'Moose::Meta::Method::Accessor::Native::Reader', # spent 9.89ms making 1 call to Moose::Role::with |
12 | 'Moose::Meta::Method::Accessor::Native::Array'; | ||||
13 | |||||
14 | 2 | 10µs | # spent 4µs within Moose::Meta::Method::Accessor::Native::Array::get::_minimum_arguments which was called 2 times, avg 2µs/call:
# 2 times (4µs+0s) by Moose::Meta::Method::Accessor::Native::_inline_check_argument_count at line 74 of Moose/Meta/Method/Accessor/Native.pm, avg 2µs/call | ||
15 | |||||
16 | 2 | 7µs | # spent 6µs within Moose::Meta::Method::Accessor::Native::Array::get::_maximum_arguments which was called 2 times, avg 3µs/call:
# 2 times (6µs+0s) by Moose::Meta::Method::Accessor::Native::_inline_check_argument_count at line 85 of Moose/Meta/Method/Accessor/Native.pm, avg 3µs/call | ||
17 | |||||
18 | # spent 72µs (9+62) within Moose::Meta::Method::Accessor::Native::Array::get::_inline_check_arguments which was called 2 times, avg 36µs/call:
# 2 times (9µs+62µs) by Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core at line 33 of Moose/Meta/Method/Accessor/Native/Reader.pm, avg 36µs/call | ||||
19 | 2 | 900ns | my $self = shift; | ||
20 | |||||
21 | 2 | 13µs | 2 | 62µs | return $self->_inline_check_var_is_valid_index('$_[0]'); # spent 62µs making 2 calls to Moose::Meta::Method::Accessor::Native::Array::_inline_check_var_is_valid_index, avg 31µs/call |
22 | } | ||||
23 | |||||
24 | # spent 6µs within Moose::Meta::Method::Accessor::Native::Array::get::_return_value which was called 2 times, avg 3µs/call:
# 2 times (6µs+0s) by Moose::Meta::Method::Accessor::Native::_inline_return_value at line 103 of Moose/Meta/Method/Accessor/Native.pm, avg 3µs/call | ||||
25 | 2 | 1µs | my $self = shift; | ||
26 | 2 | 700ns | my ($slot_access) = @_; | ||
27 | |||||
28 | 2 | 6µs | return $slot_access . '->[ $_[0] ]'; | ||
29 | } | ||||
30 | |||||
31 | 1 | 5µs | 1; |