| Filename | /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Moose/Meta/Method/Accessor/Native/Bool/toggle.pm |
| Statements | Executed 17 statements in 1.13ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 77µs | 96µs | Moose::Meta::Method::Accessor::Native::Bool::toggle::BEGIN@3 |
| 1 | 1 | 1 | 46µs | 776µs | Moose::Meta::Method::Accessor::Native::Bool::toggle::BEGIN@35 |
| 1 | 1 | 1 | 43µs | 14.9ms | Moose::Meta::Method::Accessor::Native::Bool::toggle::BEGIN@10 |
| 1 | 1 | 1 | 42µs | 110µs | Moose::Meta::Method::Accessor::Native::Bool::toggle::BEGIN@4 |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Bool::toggle::_inline_optimized_set_new_value |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Bool::toggle::_maximum_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Bool::toggle::_potential_value |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Method::Accessor::Native::Bool::toggle; | ||||
| 2 | |||||
| 3 | 3 | 106µs | 2 | 114µs | # spent 96µs (77+18) within Moose::Meta::Method::Accessor::Native::Bool::toggle::BEGIN@3 which was called:
# once (77µs+18µs) by Moose::Meta::Attribute::Native::Trait::Bool::BEGIN@10 at line 3 # spent 96µs making 1 call to Moose::Meta::Method::Accessor::Native::Bool::toggle::BEGIN@3
# spent 18µs making 1 call to strict::import |
| 4 | 3 | 245µs | 2 | 179µs | # spent 110µs (42+68) within Moose::Meta::Method::Accessor::Native::Bool::toggle::BEGIN@4 which was called:
# once (42µs+68µs) by Moose::Meta::Attribute::Native::Trait::Bool::BEGIN@10 at line 4 # spent 110µs making 1 call to Moose::Meta::Method::Accessor::Native::Bool::toggle::BEGIN@4
# spent 68µs making 1 call to warnings::import |
| 5 | |||||
| 6 | 1 | 4µs | our $VERSION = '1.19'; | ||
| 7 | 1 | 79µs | $VERSION = eval $VERSION; # spent 11µs executing statements in string eval | ||
| 8 | 1 | 3µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 9 | |||||
| 10 | 3 | 506µs | 2 | 29.8ms | # spent 14.9ms (43µs+14.9) within Moose::Meta::Method::Accessor::Native::Bool::toggle::BEGIN@10 which was called:
# once (43µs+14.9ms) by Moose::Meta::Attribute::Native::Trait::Bool::BEGIN@10 at line 10 # spent 14.9ms making 1 call to Moose::Meta::Method::Accessor::Native::Bool::toggle::BEGIN@10
# spent 14.9ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 11 | |||||
| 12 | 1 | 31µs | 1 | 34.2ms | with 'Moose::Meta::Method::Accessor::Native::Writer' => { # spent 34.2ms 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 "$slot_access ? 0 : 1"; | ||||
| 27 | } | ||||
| 28 | |||||
| 29 | sub _inline_optimized_set_new_value { | ||||
| 30 | my ( $self, $inv, $new, $slot_access ) = @_; | ||||
| 31 | |||||
| 32 | return "$slot_access = $slot_access ? 0 : 1"; | ||||
| 33 | } | ||||
| 34 | |||||
| 35 | 3 | 113µs | 2 | 1.51ms | # spent 776µs (46+729) within Moose::Meta::Method::Accessor::Native::Bool::toggle::BEGIN@35 which was called:
# once (46µs+729µs) by Moose::Meta::Attribute::Native::Trait::Bool::BEGIN@10 at line 35 # spent 776µs making 1 call to Moose::Meta::Method::Accessor::Native::Bool::toggle::BEGIN@35
# spent 729µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:557] |
| 36 | |||||
| 37 | 1 | 46µs | 1; |