| Filename | /home/ss5/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/x86_64-linux/Moose/Meta/Method/Meta.pm |
| Statements | Executed 12 statements in 118µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 2 | 1 | 1 | 10µs | 5.61ms | Moose::Meta::Method::Meta::wrap |
| 1 | 1 | 1 | 9µs | 10µs | Moose::Meta::Method::Meta::BEGIN@4 |
| 1 | 1 | 1 | 5µs | 25µs | Moose::Meta::Method::Meta::BEGIN@7 |
| 1 | 1 | 1 | 4µs | 8µs | Moose::Meta::Method::Meta::BEGIN@5 |
| 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 | package Moose::Meta::Method::Meta; | ||||
| 2 | 1 | 200ns | our $VERSION = '2.1605'; | ||
| 3 | |||||
| 4 | 2 | 14µs | 2 | 12µs | # spent 10µs (9+1) within Moose::Meta::Method::Meta::BEGIN@4 which was called:
# once (9µs+1µs) by Moose::Meta::Class::BEGIN@18 at line 4 # spent 10µs making 1 call to Moose::Meta::Method::Meta::BEGIN@4
# spent 2µs making 1 call to strict::import |
| 5 | 2 | 14µs | 2 | 11µs | # spent 8µs (4+3) within Moose::Meta::Method::Meta::BEGIN@5 which was called:
# once (4µs+3µs) by Moose::Meta::Class::BEGIN@18 at line 5 # spent 8µs making 1 call to Moose::Meta::Method::Meta::BEGIN@5
# spent 3µs making 1 call to warnings::import |
| 6 | |||||
| 7 | 1 | 3µs | 1 | 19µs | # spent 25µs (5+19) within Moose::Meta::Method::Meta::BEGIN@7 which was called:
# once (5µs+19µs) by Moose::Meta::Class::BEGIN@18 at line 8 # spent 19µs making 1 call to parent::import |
| 8 | 1 | 75µs | 1 | 25µs | 'Class::MOP::Method::Meta'; # spent 25µs making 1 call to Moose::Meta::Method::Meta::BEGIN@7 |
| 9 | |||||
| 10 | sub _is_caller_mop_internal { | ||||
| 11 | my $self = shift; | ||||
| 12 | my ($caller) = @_; | ||||
| 13 | return 1 if $caller =~ /^Moose(?:::|$)/; | ||||
| 14 | return $self->SUPER::_is_caller_mop_internal($caller); | ||||
| 15 | } | ||||
| 16 | |||||
| 17 | # XXX: ugh multiple inheritance | ||||
| 18 | # spent 5.61ms (10µs+5.60) within Moose::Meta::Method::Meta::wrap which was called 2 times, avg 2.80ms/call:
# 2 times (10µs+5.60ms) by Class::MOP::Mixin::HasMethods::_add_meta_method at line 24 of Class/MOP/Mixin/HasMethods.pm, avg 2.80ms/call | ||||
| 19 | 2 | 700ns | my $class = shift; | ||
| 20 | 2 | 8µs | 2 | 5.60ms | return $class->Class::MOP::Method::Meta::wrap(@_); # spent 5.60ms making 2 calls to Class::MOP::Method::Meta::wrap, avg 2.80ms/call |
| 21 | } | ||||
| 22 | |||||
| 23 | sub _make_compatible_with { | ||||
| 24 | my $self = shift; | ||||
| 25 | return $self->Class::MOP::Method::Meta::_make_compatible_with(@_); | ||||
| 26 | } | ||||
| 27 | |||||
| 28 | 1 | 2µs | 1; | ||
| 29 | |||||
| 30 | # ABSTRACT: A Moose Method metaclass for C<meta> methods | ||||
| 31 | |||||
| 32 | __END__ |