| Filename | /2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/x86_64-linux/Moose/Meta/Role/Method.pm |
| Statements | Executed 13 statements in 161µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 10µs | 10µs | Moose::Meta::Role::Method::BEGIN@3 |
| 1 | 1 | 1 | 9µs | 25µs | Moose::Meta::Role::Method::BEGIN@11 |
| 1 | 1 | 1 | 9µs | 14µs | Moose::Meta::Role::Method::BEGIN@10 |
| 1 | 1 | 1 | 7µs | 86µ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 10µs within Moose::Meta::Role::Method::BEGIN@3 which was called:
# once (10µs+0s) by Moose::Meta::Role::BEGIN@20 at line 5 | ||||
| 4 | 1 | 5µs | $Moose::Meta::Role::Method::AUTHORITY = 'cpan:STEVAN'; | ||
| 5 | 1 | 24µs | 1 | 10µs | } # spent 10µs making 1 call to Moose::Meta::Role::Method::BEGIN@3 |
| 6 | { | ||||
| 7 | 2 | 1µs | $Moose::Meta::Role::Method::VERSION = '2.0602'; | ||
| 8 | } | ||||
| 9 | |||||
| 10 | 3 | 19µs | 2 | 19µs | # spent 14µs (9+5) within Moose::Meta::Role::Method::BEGIN@10 which was called:
# once (9µs+5µs) by Moose::Meta::Role::BEGIN@20 at line 10 # spent 14µs making 1 call to Moose::Meta::Role::Method::BEGIN@10
# spent 5µs making 1 call to strict::import |
| 11 | 3 | 20µs | 2 | 40µs | # spent 25µs (9+16) within Moose::Meta::Role::Method::BEGIN@11 which was called:
# once (9µs+16µs) by Moose::Meta::Role::BEGIN@20 at line 11 # spent 25µs making 1 call to Moose::Meta::Role::Method::BEGIN@11
# spent 16µs making 1 call to warnings::import |
| 12 | |||||
| 13 | 3 | 90µs | 2 | 165µs | # spent 86µs (7+79) within Moose::Meta::Role::Method::BEGIN@13 which was called:
# once (7µs+79µs) by Moose::Meta::Role::BEGIN@20 at line 13 # spent 86µs making 1 call to Moose::Meta::Role::Method::BEGIN@13
# spent 79µ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 | |||||
| - - | |||||
| 32 | =pod | ||||
| 33 | |||||
| 34 | =head1 NAME | ||||
| 35 | |||||
| 36 | Moose::Meta::Role::Method - A Moose Method metaclass for Roles | ||||
| 37 | |||||
| 38 | =head1 VERSION | ||||
| 39 | |||||
| 40 | version 2.0602 | ||||
| 41 | |||||
| 42 | =head1 DESCRIPTION | ||||
| 43 | |||||
| 44 | This is primarily used to mark methods coming from a role | ||||
| 45 | as being different. Right now it is nothing but a subclass | ||||
| 46 | of L<Moose::Meta::Method>. | ||||
| 47 | |||||
| 48 | =head1 BUGS | ||||
| 49 | |||||
| 50 | See L<Moose/BUGS> for details on reporting bugs. | ||||
| 51 | |||||
| 52 | =head1 AUTHOR | ||||
| 53 | |||||
| 54 | Moose is maintained by the Moose Cabal, along with the help of many contributors. See L<Moose/CABAL> and L<Moose/CONTRIBUTORS> for details. | ||||
| 55 | |||||
| 56 | =head1 COPYRIGHT AND LICENSE | ||||
| 57 | |||||
| 58 | This software is copyright (c) 2012 by Infinity Interactive, Inc.. | ||||
| 59 | |||||
| 60 | This is free software; you can redistribute it and/or modify it under | ||||
| 61 | the same terms as the Perl 5 programming language system itself. | ||||
| 62 | |||||
| 63 | =cut | ||||
| 64 | |||||
| 65 | |||||
| 66 | __END__ |