Filename | /opt/perl-5.18.1/lib/site_perl/5.18.1/darwin-thread-multi-2level/Moose/Meta/Role/Method.pm |
Statements | Executed 10 statements in 211µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 12µs | 12µs | BEGIN@3 | Moose::Meta::Role::Method::
1 | 1 | 1 | 9µs | 13µs | BEGIN@11 | Moose::Meta::Role::Method::
1 | 1 | 1 | 8µs | 86µs | BEGIN@13 | Moose::Meta::Role::Method::
1 | 1 | 1 | 8µs | 23µs | BEGIN@10 | Moose::Meta::Role::Method::
0 | 0 | 0 | 0s | 0s | _make_compatible_with | Moose::Meta::Role::Method::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | |||||
2 | package Moose::Meta::Role::Method; | ||||
3 | # spent 12µs within Moose::Meta::Role::Method::BEGIN@3 which was called:
# once (12µs+0s) by Moose::Meta::Role::BEGIN@20 at line 5 | ||||
4 | 1 | 7µs | $Moose::Meta::Role::Method::AUTHORITY = 'cpan:STEVAN'; | ||
5 | 1 | 40µs | 1 | 12µs | } # spent 12µs making 1 call to Moose::Meta::Role::Method::BEGIN@3 |
6 | { | ||||
7 | 2 | 1µs | $Moose::Meta::Role::Method::VERSION = '2.1005'; | ||
8 | } | ||||
9 | |||||
10 | 2 | 29µs | 2 | 38µs | # spent 23µs (8+15) within Moose::Meta::Role::Method::BEGIN@10 which was called:
# once (8µs+15µs) by Moose::Meta::Role::BEGIN@20 at line 10 # spent 23µs making 1 call to Moose::Meta::Role::Method::BEGIN@10
# spent 15µs making 1 call to strict::import |
11 | 2 | 31µs | 2 | 18µs | # spent 13µs (9+5) within Moose::Meta::Role::Method::BEGIN@11 which was called:
# once (9µs+5µs) by Moose::Meta::Role::BEGIN@20 at line 11 # spent 13µs making 1 call to Moose::Meta::Role::Method::BEGIN@11
# spent 4µs making 1 call to warnings::import |
12 | |||||
13 | 2 | 99µs | 2 | 164µs | # spent 86µs (8+78) within Moose::Meta::Role::Method::BEGIN@13 which was called:
# once (8µs+78µs) by Moose::Meta::Role::BEGIN@20 at line 13 # spent 86µs making 1 call to Moose::Meta::Role::Method::BEGIN@13
# spent 78µ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 | 3µs | 1; | ||
27 | |||||
28 | # ABSTRACT: A Moose Method metaclass for Roles | ||||
29 | |||||
30 | __END__ |