Filename | /Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/darwin-thread-multi-2level/Moose/Meta/Method/Meta.pm |
Statements | Executed 74 statements in 300µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
32 | 1 | 1 | 115µs | 13.9ms | wrap | Moose::Meta::Method::Meta::
1 | 1 | 1 | 8µs | 8µs | BEGIN@3 | Moose::Meta::Method::Meta::
1 | 1 | 1 | 6µs | 9µs | BEGIN@11 | Moose::Meta::Method::Meta::
1 | 1 | 1 | 6µs | 91µs | BEGIN@13 | Moose::Meta::Method::Meta::
1 | 1 | 1 | 5µs | 16µs | BEGIN@10 | Moose::Meta::Method::Meta::
0 | 0 | 0 | 0s | 0s | _is_caller_mop_internal | Moose::Meta::Method::Meta::
0 | 0 | 0 | 0s | 0s | _make_compatible_with | Moose::Meta::Method::Meta::
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 | 4µs | $Moose::Meta::Method::Meta::AUTHORITY = 'cpan:STEVAN'; | ||
5 | 1 | 32µs | 1 | 8µs | } # spent 8µs making 1 call to Moose::Meta::Method::Meta::BEGIN@3 |
6 | { | ||||
7 | 2 | 800ns | $Moose::Meta::Method::Meta::VERSION = '2.1005'; | ||
8 | } | ||||
9 | |||||
10 | 2 | 19µs | 2 | 27µs | # spent 16µs (5+11) within Moose::Meta::Method::Meta::BEGIN@10 which was called:
# once (5µs+11µs) by Moose::Meta::Class::BEGIN@27 at line 10 # spent 16µs making 1 call to Moose::Meta::Method::Meta::BEGIN@10
# spent 11µs making 1 call to strict::import |
11 | 2 | 23µs | 2 | 12µs | # spent 9µs (6+3) within Moose::Meta::Method::Meta::BEGIN@11 which was called:
# once (6µs+3µs) by Moose::Meta::Class::BEGIN@27 at line 11 # spent 9µs making 1 call to Moose::Meta::Method::Meta::BEGIN@11
# spent 3µs making 1 call to warnings::import |
12 | |||||
13 | 1 | 100ns | # spent 91µs (6+85) within Moose::Meta::Method::Meta::BEGIN@13 which was called:
# once (6µs+85µs) by Moose::Meta::Class::BEGIN@27 at line 14 | ||
14 | 1 | 120µs | 2 | 176µs | 'Class::MOP::Method::Meta'; # spent 91µs making 1 call to Moose::Meta::Method::Meta::BEGIN@13
# spent 85µs making 1 call to base::import |
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 13.9ms (115µs+13.8) within Moose::Meta::Method::Meta::wrap which was called 32 times, avg 434µs/call:
# 32 times (115µs+13.8ms) by Class::MOP::Mixin::HasMethods::_add_meta_method at line 33 of Class/MOP/Mixin/HasMethods.pm, avg 434µs/call | ||||
25 | 32 | 5µs | my $class = shift; | ||
26 | 32 | 94µs | 32 | 13.8ms | return $class->Class::MOP::Method::Meta::wrap(@_); # spent 13.8ms making 32 calls to Class::MOP::Method::Meta::wrap, avg 431µ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 | |||||
38 | __END__ |