| Filename | /2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/x86_64-linux/Moose/Meta/Method/Meta.pm |
| Statements | Executed 39 statements in 305µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 13 | 1 | 1 | 113µs | 6.61ms | Moose::Meta::Method::Meta::wrap |
| 1 | 1 | 1 | 11µs | 13µs | Moose::Meta::Method::Meta::BEGIN@10 |
| 1 | 1 | 1 | 8µs | 8µs | Moose::Meta::Method::Meta::BEGIN@3 |
| 1 | 1 | 1 | 8µs | 16µs | Moose::Meta::Method::Meta::BEGIN@11 |
| 1 | 1 | 1 | 7µs | 103µs | Moose::Meta::Method::Meta::BEGIN@13 |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Meta::_is_caller_mop_internal |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Meta::_make_compatible_with |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | |||||
| 2 | package Moose::Meta::Method::Meta; | ||||
| 3 | # spent 8µs within Moose::Meta::Method::Meta::BEGIN@3 which was called:
# once (8µs+0s) by Moose::Meta::Class::BEGIN@27 at line 5 | ||||
| 4 | 1 | 5µs | $Moose::Meta::Method::Meta::AUTHORITY = 'cpan:STEVAN'; | ||
| 5 | 1 | 21µs | 1 | 8µs | } # spent 8µs making 1 call to Moose::Meta::Method::Meta::BEGIN@3 |
| 6 | { | ||||
| 7 | 2 | 1µs | $Moose::Meta::Method::Meta::VERSION = '2.0602'; | ||
| 8 | } | ||||
| 9 | |||||
| 10 | 3 | 17µs | 2 | 16µs | # spent 13µs (11+3) within Moose::Meta::Method::Meta::BEGIN@10 which was called:
# once (11µs+3µs) by Moose::Meta::Class::BEGIN@27 at line 10 # spent 13µs making 1 call to Moose::Meta::Method::Meta::BEGIN@10
# spent 3µs making 1 call to strict::import |
| 11 | 3 | 22µs | 2 | 25µs | # spent 16µs (8+8) within Moose::Meta::Method::Meta::BEGIN@11 which was called:
# once (8µs+8µs) by Moose::Meta::Class::BEGIN@27 at line 11 # spent 16µs making 1 call to Moose::Meta::Method::Meta::BEGIN@11
# spent 8µs making 1 call to warnings::import |
| 12 | |||||
| 13 | 1 | 8µs | 1 | 96µs | # spent 103µs (7+96) within Moose::Meta::Method::Meta::BEGIN@13 which was called:
# once (7µs+96µs) by Moose::Meta::Class::BEGIN@27 at line 14 # spent 96µs making 1 call to base::import |
| 14 | 2 | 118µs | 1 | 103µs | 'Class::MOP::Method::Meta'; # spent 103µs making 1 call to Moose::Meta::Method::Meta::BEGIN@13 |
| 15 | |||||
| 16 | sub _is_caller_mop_internal { | ||||
| 17 | my $self = shift; | ||||
| 18 | my ($caller) = @_; | ||||
| 19 | return 1 if $caller =~ /^Moose(?:::|$)/; | ||||
| 20 | return $self->SUPER::_is_caller_mop_internal($caller); | ||||
| 21 | } | ||||
| 22 | |||||
| 23 | # XXX: ugh multiple inheritance | ||||
| 24 | # spent 6.61ms (113µs+6.50) within Moose::Meta::Method::Meta::wrap which was called 13 times, avg 508µs/call:
# 13 times (113µs+6.50ms) by Class::MOP::Mixin::HasMethods::_add_meta_method at line 33 of Class/MOP/Mixin/HasMethods.pm, avg 508µs/call | ||||
| 25 | 13 | 10µs | my $class = shift; | ||
| 26 | 13 | 103µs | 13 | 6.50ms | return $class->Class::MOP::Method::Meta::wrap(@_); # spent 6.50ms making 13 calls to Class::MOP::Method::Meta::wrap, avg 500µs/call |
| 27 | } | ||||
| 28 | |||||
| 29 | sub _make_compatible_with { | ||||
| 30 | my $self = shift; | ||||
| 31 | return $self->Class::MOP::Method::Meta::_make_compatible_with(@_); | ||||
| 32 | } | ||||
| 33 | |||||
| 34 | 1 | 2µs | 1; | ||
| 35 | |||||
| 36 | # ABSTRACT: A Moose Method metaclass for C<meta> methods | ||||
| 37 | |||||
| - - | |||||
| 40 | =pod | ||||
| 41 | |||||
| 42 | =head1 NAME | ||||
| 43 | |||||
| 44 | Moose::Meta::Method::Meta - A Moose Method metaclass for C<meta> methods | ||||
| 45 | |||||
| 46 | =head1 VERSION | ||||
| 47 | |||||
| 48 | version 2.0602 | ||||
| 49 | |||||
| 50 | =head1 DESCRIPTION | ||||
| 51 | |||||
| 52 | This class is a subclass of L<Class::MOP::Method::Meta> that | ||||
| 53 | provides additional Moose-specific functionality, all of which is | ||||
| 54 | private. | ||||
| 55 | |||||
| 56 | To understand this class, you should read the the | ||||
| 57 | L<Class::MOP::Method::Meta> documentation. | ||||
| 58 | |||||
| 59 | =head1 BUGS | ||||
| 60 | |||||
| 61 | See L<Moose/BUGS> for details on reporting bugs. | ||||
| 62 | |||||
| 63 | =head1 AUTHOR | ||||
| 64 | |||||
| 65 | Moose is maintained by the Moose Cabal, along with the help of many contributors. See L<Moose/CABAL> and L<Moose/CONTRIBUTORS> for details. | ||||
| 66 | |||||
| 67 | =head1 COPYRIGHT AND LICENSE | ||||
| 68 | |||||
| 69 | This software is copyright (c) 2012 by Infinity Interactive, Inc.. | ||||
| 70 | |||||
| 71 | This is free software; you can redistribute it and/or modify it under | ||||
| 72 | the same terms as the Perl 5 programming language system itself. | ||||
| 73 | |||||
| 74 | =cut | ||||
| 75 | |||||
| 76 | |||||
| 77 | __END__ |