| Filename | /home/ss5/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/x86_64-linux/Moose/Meta/Role/Method.pm |
| Statements | Executed 8 statements in 81µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 9µs | 10µs | Moose::Meta::Role::Method::BEGIN@4 |
| 1 | 1 | 1 | 5µs | 8µs | Moose::Meta::Role::Method::BEGIN@5 |
| 1 | 1 | 1 | 4µs | 23µs | Moose::Meta::Role::Method::BEGIN@7 |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Role::Method::_make_compatible_with |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Role::Method; | ||||
| 2 | 1 | 200ns | our $VERSION = '2.1605'; | ||
| 3 | |||||
| 4 | 2 | 14µs | 2 | 12µs | # spent 10µs (9+1) within Moose::Meta::Role::Method::BEGIN@4 which was called:
# once (9µs+1µs) by Moose::Meta::Role::BEGIN@12 at line 4 # spent 10µs making 1 call to Moose::Meta::Role::Method::BEGIN@4
# spent 2µs making 1 call to strict::import |
| 5 | 2 | 17µs | 2 | 11µs | # spent 8µs (5+3) within Moose::Meta::Role::Method::BEGIN@5 which was called:
# once (5µs+3µs) by Moose::Meta::Role::BEGIN@12 at line 5 # spent 8µs making 1 call to Moose::Meta::Role::Method::BEGIN@5
# spent 3µs making 1 call to warnings::import |
| 6 | |||||
| 7 | 2 | 48µs | 2 | 42µs | # spent 23µs (4+19) within Moose::Meta::Role::Method::BEGIN@7 which was called:
# once (4µs+19µs) by Moose::Meta::Role::BEGIN@12 at line 7 # spent 23µs making 1 call to Moose::Meta::Role::Method::BEGIN@7
# spent 19µs making 1 call to parent::import |
| 8 | |||||
| 9 | sub _make_compatible_with { | ||||
| 10 | my $self = shift; | ||||
| 11 | my ($other) = @_; | ||||
| 12 | |||||
| 13 | # XXX: this is pretty gross. the issue here is blah blah blah | ||||
| 14 | # see the comments in CMOP::Method::Meta and CMOP::Method::Wrapped | ||||
| 15 | return $self unless $other->_is_compatible_with($self->_real_ref_name); | ||||
| 16 | |||||
| 17 | return $self->SUPER::_make_compatible_with(@_); | ||||
| 18 | } | ||||
| 19 | |||||
| 20 | 1 | 2µs | 1; | ||
| 21 | |||||
| 22 | # ABSTRACT: A Moose Method metaclass for Roles | ||||
| 23 | |||||
| 24 | __END__ |