| Filename | /Users/ap13/perl5/lib/perl5/darwin-2level/Moose/Meta/Method/Meta.pm |
| Statements | Executed 50 statements in 336µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 21 | 1 | 1 | 178µs | 8.18ms | Moose::Meta::Method::Meta::wrap |
| 1 | 1 | 1 | 13µs | 28µs | Moose::Meta::Method::Meta::BEGIN@4 |
| 1 | 1 | 1 | 8µs | 12µs | Moose::Meta::Method::Meta::BEGIN@5 |
| 1 | 1 | 1 | 8µs | 41µs | Moose::Meta::Method::Meta::BEGIN@7 |
| 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 | 700ns | our $VERSION = '2.1403'; | ||
| 3 | |||||
| 4 | 2 | 25µs | 2 | 42µs | # spent 28µs (13+14) within Moose::Meta::Method::Meta::BEGIN@4 which was called:
# once (13µs+14µs) by Moose::Meta::Class::BEGIN@18 at line 4 # spent 28µs making 1 call to Moose::Meta::Method::Meta::BEGIN@4
# spent 14µs making 1 call to strict::import |
| 5 | 2 | 26µs | 2 | 17µs | # spent 12µs (8+4) within Moose::Meta::Method::Meta::BEGIN@5 which was called:
# once (8µs+4µs) by Moose::Meta::Class::BEGIN@18 at line 5 # spent 12µs making 1 call to Moose::Meta::Method::Meta::BEGIN@5
# spent 4µs making 1 call to warnings::import |
| 6 | |||||
| 7 | 1 | 300ns | # spent 41µs (8+33) within Moose::Meta::Method::Meta::BEGIN@7 which was called:
# once (8µs+33µs) by Moose::Meta::Class::BEGIN@18 at line 8 | ||
| 8 | 1 | 127µs | 2 | 74µs | 'Class::MOP::Method::Meta'; # spent 41µs making 1 call to Moose::Meta::Method::Meta::BEGIN@7
# spent 33µs making 1 call to parent::import |
| 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 8.18ms (178µs+8.00) within Moose::Meta::Method::Meta::wrap which was called 21 times, avg 389µs/call:
# 21 times (178µs+8.00ms) by Class::MOP::Mixin::HasMethods::_add_meta_method at line 24 of Class/MOP/Mixin/HasMethods.pm, avg 389µs/call | ||||
| 19 | 21 | 13µs | my $class = shift; | ||
| 20 | 21 | 142µs | 21 | 8.00ms | return $class->Class::MOP::Method::Meta::wrap(@_); # spent 8.00ms making 21 calls to Class::MOP::Method::Meta::wrap, avg 381µs/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 | 3µs | 1; | ||
| 29 | |||||
| 30 | # ABSTRACT: A Moose Method metaclass for C<meta> methods | ||||
| 31 | |||||
| 32 | __END__ |