| Filename | /home/doy/coding/src/Moose/blib/lib//Moose/Meta/Method/Accessor/Native/Reader.pm |
| Statements | Executed 45 statements in 1.78ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 3 | 1 | 1 | 279µs | 1.41ms | Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core |
| 3 | 1 | 1 | 210µs | 3.20ms | Moose::Meta::Method::Accessor::Native::Reader::_generate_method |
| 1 | 1 | 1 | 72µs | 90µs | Moose::Meta::Method::Accessor::Native::Reader::BEGIN@3 |
| 1 | 1 | 1 | 44µs | 729µs | Moose::Meta::Method::Accessor::Native::Reader::BEGIN@48 |
| 1 | 1 | 1 | 43µs | 13.7ms | Moose::Meta::Method::Accessor::Native::Reader::BEGIN@10 |
| 1 | 1 | 1 | 41µs | 108µs | Moose::Meta::Method::Accessor::Native::Reader::BEGIN@4 |
| 3 | 1 | 1 | 23µs | 23µs | Moose::Meta::Method::Accessor::Native::Reader::_inline_process_arguments |
| 3 | 1 | 1 | 22µs | 22µs | Moose::Meta::Method::Accessor::Native::Reader::_inline_check_arguments |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Method::Accessor::Native::Reader; | ||||
| 2 | |||||
| 3 | 3 | 102µs | 2 | 108µs | # spent 90µs (72+18) within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@3 which was called:
# once (72µs+18µs) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 3 # spent 90µs making 1 call to Moose::Meta::Method::Accessor::Native::Reader::BEGIN@3
# spent 18µs making 1 call to strict::import |
| 4 | 3 | 239µs | 2 | 174µs | # spent 108µs (41+67) within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@4 which was called:
# once (41µs+67µs) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 4 # spent 108µs making 1 call to Moose::Meta::Method::Accessor::Native::Reader::BEGIN@4
# spent 67µs making 1 call to warnings::import |
| 5 | |||||
| 6 | 1 | 4µs | our $VERSION = '1.19'; | ||
| 7 | 1 | 72µs | $VERSION = eval $VERSION; # spent 10µs executing statements in string eval | ||
| 8 | 1 | 4µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 9 | |||||
| 10 | 3 | 688µs | 2 | 27.3ms | # spent 13.7ms (43µs+13.6) within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@10 which was called:
# once (43µs+13.6ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 10 # spent 13.7ms making 1 call to Moose::Meta::Method::Accessor::Native::Reader::BEGIN@10
# spent 13.6ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 11 | |||||
| 12 | 1 | 18µs | 1 | 40.4ms | with 'Moose::Meta::Method::Accessor::Native'; # spent 40.4ms making 1 call to Moose::Role::with |
| 13 | |||||
| 14 | 1 | 12µs | 1 | 366µs | requires '_return_value'; # spent 366µs making 1 call to Moose::Role::requires |
| 15 | |||||
| 16 | # spent 3.20ms (210µs+2.99) within Moose::Meta::Method::Accessor::Native::Reader::_generate_method which was called 3 times, avg 1.07ms/call:
# 3 times (210µs+2.99ms) by Moose::Meta::Method::Accessor::Native::_initialize_body at line 46 of Moose/Meta/Method/Accessor/Native.pm, avg 1.07ms/call | ||||
| 17 | 12 | 189µs | my $self = shift; | ||
| 18 | |||||
| 19 | my $inv = '$self'; | ||||
| 20 | 3 | 1.40ms | my $slot_access = $self->_get_value($inv); # spent 504µs making 1 call to Class::MOP::Class::__ANON__::SERIAL::3::_get_value
# spent 453µs making 1 call to Class::MOP::Class::__ANON__::SERIAL::7::_get_value
# spent 445µs making 1 call to Class::MOP::Class::__ANON__::SERIAL::4::_get_value | ||
| 21 | |||||
| 22 | return ( | ||||
| 23 | 6 | 1.59ms | 'sub {', # spent 1.41ms making 3 calls to Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core, avg 469µs/call
# spent 182µs making 3 calls to Moose::Meta::Method::Accessor::Native::_inline_curried_arguments, avg 61µs/call | ||
| 24 | 'my ' . $inv . ' = shift;', | ||||
| 25 | $self->_inline_curried_arguments, | ||||
| 26 | $self->_inline_reader_core($inv, $slot_access, @_), | ||||
| 27 | '}', | ||||
| 28 | ); | ||||
| 29 | } | ||||
| 30 | |||||
| 31 | # spent 1.41ms (279µs+1.13) within Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core which was called 3 times, avg 469µs/call:
# 3 times (279µs+1.13ms) by Moose::Meta::Method::Accessor::Native::Reader::_generate_method at line 23, avg 469µs/call | ||||
| 32 | 9 | 225µs | my $self = shift; | ||
| 33 | my ($inv, $slot_access, @extra) = @_; | ||||
| 34 | |||||
| 35 | return ( | ||||
| 36 | 15 | 1.13ms | $self->_inline_check_argument_count, # spent 521µs making 3 calls to Moose::Meta::Method::Accessor::Native::_inline_check_argument_count, avg 174µs/call
# spent 299µs making 3 calls to Moose::Meta::Method::Accessor::Native::_inline_return_value, avg 100µs/call
# spent 264µs making 3 calls to Moose::Meta::Method::Accessor::_inline_check_lazy, avg 88µs/call
# spent 23µs making 3 calls to Moose::Meta::Method::Accessor::Native::Reader::_inline_process_arguments, avg 8µs/call
# spent 22µs making 3 calls to Moose::Meta::Method::Accessor::Native::Reader::_inline_check_arguments, avg 7µs/call | ||
| 37 | $self->_inline_process_arguments($inv, $slot_access), | ||||
| 38 | $self->_inline_check_arguments, | ||||
| 39 | $self->_inline_check_lazy($inv, '$type_constraint', '$type_constraint_obj'), | ||||
| 40 | $self->_inline_return_value($slot_access), | ||||
| 41 | ); | ||||
| 42 | } | ||||
| 43 | |||||
| 44 | 3 | 35µs | # spent 23µs within Moose::Meta::Method::Accessor::Native::Reader::_inline_process_arguments which was called 3 times, avg 8µs/call:
# 3 times (23µs+0s) by Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core at line 36, avg 8µs/call | ||
| 45 | |||||
| 46 | 3 | 34µs | # spent 22µs within Moose::Meta::Method::Accessor::Native::Reader::_inline_check_arguments which was called 3 times, avg 7µs/call:
# 3 times (22µs+0s) by Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core at line 36, avg 7µs/call | ||
| 47 | |||||
| 48 | 3 | 109µs | 2 | 1.41ms | # spent 729µs (44+685) within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@48 which was called:
# once (44µs+685µs) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 48 # spent 729µs making 1 call to Moose::Meta::Method::Accessor::Native::Reader::BEGIN@48
# spent 685µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:557] |
| 49 | |||||
| 50 | 1 | 50µs | 1; |