| Filename | /Users/ap13/perl5/lib/perl5/darwin-2level/Moose/Meta/Role/Method.pm |
| Statements | Executed 8 statements in 151µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 13µs | 26µs | Moose::Meta::Role::Method::BEGIN@4 |
| 1 | 1 | 1 | 12µs | 41µs | Moose::Meta::Role::Method::BEGIN@7 |
| 1 | 1 | 1 | 8µs | 12µs | Moose::Meta::Role::Method::BEGIN@5 |
| 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 | 600ns | our $VERSION = '2.1403'; | ||
| 3 | |||||
| 4 | 2 | 24µs | 2 | 39µs | # spent 26µs (13+13) within Moose::Meta::Role::Method::BEGIN@4 which was called:
# once (13µs+13µs) by Moose::Meta::Role::BEGIN@12 at line 4 # spent 26µs making 1 call to Moose::Meta::Role::Method::BEGIN@4
# spent 13µs making 1 call to strict::import |
| 5 | 2 | 37µs | 2 | 16µs | # spent 12µs (8+4) within Moose::Meta::Role::Method::BEGIN@5 which was called:
# once (8µs+4µs) by Moose::Meta::Role::BEGIN@12 at line 5 # spent 12µs making 1 call to Moose::Meta::Role::Method::BEGIN@5
# spent 4µs making 1 call to warnings::import |
| 6 | |||||
| 7 | 2 | 87µs | 2 | 70µs | # spent 41µs (12+29) within Moose::Meta::Role::Method::BEGIN@7 which was called:
# once (12µs+29µs) by Moose::Meta::Role::BEGIN@12 at line 7 # spent 41µs making 1 call to Moose::Meta::Role::Method::BEGIN@7
# spent 29µ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 | 3µs | 1; | ||
| 21 | |||||
| 22 | # ABSTRACT: A Moose Method metaclass for Roles | ||||
| 23 | |||||
| 24 | __END__ |