| Filename | /Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/darwin-thread-multi-2level/Moose/Meta/Role/Method.pm |
| Statements | Executed 10 statements in 138µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 8µs | 8µs | Moose::Meta::Role::Method::BEGIN@3 |
| 1 | 1 | 1 | 6µs | 9µs | Moose::Meta::Role::Method::BEGIN@11 |
| 1 | 1 | 1 | 6µs | 16µs | Moose::Meta::Role::Method::BEGIN@10 |
| 1 | 1 | 1 | 5µs | 58µs | Moose::Meta::Role::Method::BEGIN@13 |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Role::Method::_make_compatible_with |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | |||||
| 2 | package Moose::Meta::Role::Method; | ||||
| 3 | # spent 8µs within Moose::Meta::Role::Method::BEGIN@3 which was called:
# once (8µs+0s) by Moose::Meta::Role::BEGIN@20 at line 5 | ||||
| 4 | 1 | 4µs | $Moose::Meta::Role::Method::AUTHORITY = 'cpan:STEVAN'; | ||
| 5 | 1 | 28µs | 1 | 8µs | } # spent 8µs making 1 call to Moose::Meta::Role::Method::BEGIN@3 |
| 6 | { | ||||
| 7 | 2 | 700ns | $Moose::Meta::Role::Method::VERSION = '2.1005'; | ||
| 8 | } | ||||
| 9 | |||||
| 10 | 2 | 19µs | 2 | 26µs | # spent 16µs (6+10) within Moose::Meta::Role::Method::BEGIN@10 which was called:
# once (6µs+10µs) by Moose::Meta::Role::BEGIN@20 at line 10 # spent 16µs making 1 call to Moose::Meta::Role::Method::BEGIN@10
# spent 10µs making 1 call to strict::import |
| 11 | 2 | 20µs | 2 | 12µs | # spent 9µs (6+3) within Moose::Meta::Role::Method::BEGIN@11 which was called:
# once (6µs+3µs) by Moose::Meta::Role::BEGIN@20 at line 11 # spent 9µs making 1 call to Moose::Meta::Role::Method::BEGIN@11
# spent 3µs making 1 call to warnings::import |
| 12 | |||||
| 13 | 2 | 64µs | 2 | 110µs | # spent 58µs (5+52) within Moose::Meta::Role::Method::BEGIN@13 which was called:
# once (5µs+52µs) by Moose::Meta::Role::BEGIN@20 at line 13 # spent 58µs making 1 call to Moose::Meta::Role::Method::BEGIN@13
# spent 52µs making 1 call to base::import |
| 14 | |||||
| 15 | sub _make_compatible_with { | ||||
| 16 | my $self = shift; | ||||
| 17 | my ($other) = @_; | ||||
| 18 | |||||
| 19 | # XXX: this is pretty gross. the issue here is blah blah blah | ||||
| 20 | # see the comments in CMOP::Method::Meta and CMOP::Method::Wrapped | ||||
| 21 | return $self unless $other->_is_compatible_with($self->_real_ref_name); | ||||
| 22 | |||||
| 23 | return $self->SUPER::_make_compatible_with(@_); | ||||
| 24 | } | ||||
| 25 | |||||
| 26 | 1 | 2µs | 1; | ||
| 27 | |||||
| 28 | # ABSTRACT: A Moose Method metaclass for Roles | ||||
| 29 | |||||
| 30 | __END__ |