Filename | /opt/perl-5.18.1/lib/site_perl/5.18.1/darwin-thread-multi-2level/Moose/Meta/Method/Meta.pm |
Statements | Executed 14 statements in 321µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
2 | 1 | 1 | 16µs | 1.50ms | wrap | Moose::Meta::Method::Meta::
1 | 1 | 1 | 12µs | 12µs | BEGIN@3 | Moose::Meta::Method::Meta::
1 | 1 | 1 | 9µs | 14µs | BEGIN@11 | Moose::Meta::Method::Meta::
1 | 1 | 1 | 9µs | 136µs | BEGIN@13 | Moose::Meta::Method::Meta::
1 | 1 | 1 | 8µs | 24µ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 12µs within Moose::Meta::Method::Meta::BEGIN@3 which was called:
# once (12µs+0s) by Moose::Meta::Class::BEGIN@27 at line 5 | ||||
4 | 1 | 7µs | $Moose::Meta::Method::Meta::AUTHORITY = 'cpan:STEVAN'; | ||
5 | 1 | 41µs | 1 | 12µs | } # spent 12µs making 1 call to Moose::Meta::Method::Meta::BEGIN@3 |
6 | { | ||||
7 | 2 | 1µs | $Moose::Meta::Method::Meta::VERSION = '2.1005'; | ||
8 | } | ||||
9 | |||||
10 | 2 | 31µs | 2 | 40µs | # spent 24µs (8+16) within Moose::Meta::Method::Meta::BEGIN@10 which was called:
# once (8µs+16µs) by Moose::Meta::Class::BEGIN@27 at line 10 # spent 24µs making 1 call to Moose::Meta::Method::Meta::BEGIN@10
# spent 16µs making 1 call to strict::import |
11 | 2 | 35µs | 2 | 18µs | # spent 14µs (9+5) within Moose::Meta::Method::Meta::BEGIN@11 which was called:
# once (9µs+5µs) by Moose::Meta::Class::BEGIN@27 at line 11 # spent 14µs making 1 call to Moose::Meta::Method::Meta::BEGIN@11
# spent 5µs making 1 call to warnings::import |
12 | |||||
13 | 1 | 400ns | # spent 136µs (9+128) within Moose::Meta::Method::Meta::BEGIN@13 which was called:
# once (9µs+128µs) by Moose::Meta::Class::BEGIN@27 at line 14 | ||
14 | 1 | 188µs | 2 | 264µs | 'Class::MOP::Method::Meta'; # spent 136µs making 1 call to Moose::Meta::Method::Meta::BEGIN@13
# spent 128µ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 1.50ms (16µs+1.48) within Moose::Meta::Method::Meta::wrap which was called 2 times, avg 750µs/call:
# 2 times (16µs+1.48ms) by Class::MOP::Mixin::HasMethods::_add_meta_method at line 33 of Class/MOP/Mixin/HasMethods.pm, avg 750µs/call | ||||
25 | 2 | 800ns | my $class = shift; | ||
26 | 2 | 13µs | 2 | 1.48ms | return $class->Class::MOP::Method::Meta::wrap(@_); # spent 1.48ms making 2 calls to Class::MOP::Method::Meta::wrap, avg 742µ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 | 4µs | 1; | ||
35 | |||||
36 | # ABSTRACT: A Moose Method metaclass for C<meta> methods | ||||
37 | |||||
38 | __END__ |