| Filename | /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Moose/Meta/Method/Accessor/Native/String/inc.pm |
| Statements | Executed 17 statements in 1.36ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 100µs | 122µs | Moose::Meta::Method::Accessor::Native::String::inc::BEGIN@3 |
| 1 | 1 | 1 | 53µs | 135µs | Moose::Meta::Method::Accessor::Native::String::inc::BEGIN@4 |
| 1 | 1 | 1 | 52µs | 852µs | Moose::Meta::Method::Accessor::Native::String::inc::BEGIN@35 |
| 1 | 1 | 1 | 52µs | 17.0ms | Moose::Meta::Method::Accessor::Native::String::inc::BEGIN@10 |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::String::inc::_inline_optimized_set_new_value |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::String::inc::_maximum_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::String::inc::_potential_value |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Method::Accessor::Native::String::inc; | ||||
| 2 | |||||
| 3 | 3 | 140µs | 2 | 143µs | # spent 122µs (100+22) within Moose::Meta::Method::Accessor::Native::String::inc::BEGIN@3 which was called:
# once (100µs+22µs) by Moose::Meta::Attribute::Native::Trait::String::BEGIN@12 at line 3 # spent 122µs making 1 call to Moose::Meta::Method::Accessor::Native::String::inc::BEGIN@3
# spent 22µs making 1 call to strict::import |
| 4 | 3 | 334µs | 2 | 217µs | # spent 135µs (53+82) within Moose::Meta::Method::Accessor::Native::String::inc::BEGIN@4 which was called:
# once (53µs+82µs) by Moose::Meta::Attribute::Native::Trait::String::BEGIN@12 at line 4 # spent 135µs making 1 call to Moose::Meta::Method::Accessor::Native::String::inc::BEGIN@4
# spent 82µs making 1 call to warnings::import |
| 5 | |||||
| 6 | 1 | 4µs | our $VERSION = '1.19'; | ||
| 7 | 1 | 146µs | $VERSION = eval $VERSION; # spent 11µs executing statements in string eval | ||
| 8 | 1 | 4µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 9 | |||||
| 10 | 3 | 514µs | 2 | 33.9ms | # spent 17.0ms (52µs+16.9) within Moose::Meta::Method::Accessor::Native::String::inc::BEGIN@10 which was called:
# once (52µs+16.9ms) by Moose::Meta::Attribute::Native::Trait::String::BEGIN@12 at line 10 # spent 17.0ms making 1 call to Moose::Meta::Method::Accessor::Native::String::inc::BEGIN@10
# spent 16.9ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 11 | |||||
| 12 | 1 | 35µs | 1 | 33.0ms | with 'Moose::Meta::Method::Accessor::Native::Writer' => { # spent 33.0ms making 1 call to Moose::Role::with |
| 13 | -excludes => [ | ||||
| 14 | qw( | ||||
| 15 | _maximum_arguments | ||||
| 16 | _inline_optimized_set_new_value | ||||
| 17 | ) | ||||
| 18 | ] | ||||
| 19 | }; | ||||
| 20 | |||||
| 21 | sub _maximum_arguments { 0 } | ||||
| 22 | |||||
| 23 | sub _potential_value { | ||||
| 24 | my ( $self, $slot_access ) = @_; | ||||
| 25 | |||||
| 26 | return "( do { my \$val = $slot_access; \$val++; \$val } )"; | ||||
| 27 | } | ||||
| 28 | |||||
| 29 | sub _inline_optimized_set_new_value { | ||||
| 30 | my ( $self, $inv, $new, $slot_access ) = @_; | ||||
| 31 | |||||
| 32 | return "${slot_access}++"; | ||||
| 33 | } | ||||
| 34 | |||||
| 35 | 3 | 141µs | 2 | 1.65ms | # spent 852µs (52+800) within Moose::Meta::Method::Accessor::Native::String::inc::BEGIN@35 which was called:
# once (52µs+800µs) by Moose::Meta::Attribute::Native::Trait::String::BEGIN@12 at line 35 # spent 852µs making 1 call to Moose::Meta::Method::Accessor::Native::String::inc::BEGIN@35
# spent 800µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:557] |
| 36 | |||||
| 37 | 1 | 46µs | 1; |