| Filename | /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Moose/Meta/Method/Meta.pm |
| Statements | Executed 483 statements in 9.01ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 193 | 1 | 1 | 6.55ms | 349ms | Moose::Meta::Method::Meta::wrap |
| 42 | 1 | 1 | 1.29ms | 5.85ms | Moose::Meta::Method::Meta::_make_compatible_with |
| 1 | 1 | 1 | 71µs | 90µs | Moose::Meta::Method::Meta::BEGIN@4 |
| 1 | 1 | 1 | 46µs | 478µs | Moose::Meta::Method::Meta::BEGIN@11 |
| 1 | 1 | 1 | 38µs | 108µs | Moose::Meta::Method::Meta::BEGIN@5 |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Meta::_is_caller_mop_internal |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | |||||
| 2 | package Moose::Meta::Method::Meta; | ||||
| 3 | |||||
| 4 | 3 | 101µs | 2 | 109µs | # spent 90µs (71+19) within Moose::Meta::Method::Meta::BEGIN@4 which was called:
# once (71µs+19µs) by Moose::Meta::Class::BEGIN@25 at line 4 # spent 90µs making 1 call to Moose::Meta::Method::Meta::BEGIN@4
# spent 19µs making 1 call to strict::import |
| 5 | 3 | 217µs | 2 | 178µs | # spent 108µs (38+70) within Moose::Meta::Method::Meta::BEGIN@5 which was called:
# once (38µs+70µs) by Moose::Meta::Class::BEGIN@25 at line 5 # spent 108µs making 1 call to Moose::Meta::Method::Meta::BEGIN@5
# spent 70µs making 1 call to warnings::import |
| 6 | |||||
| 7 | 1 | 5µs | our $VERSION = '1.19'; | ||
| 8 | 1 | 71µs | $VERSION = eval $VERSION; # spent 27µs executing statements in string eval | ||
| 9 | 1 | 4µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 10 | |||||
| 11 | 1 | 432µs | # spent 478µs (46+432) within Moose::Meta::Method::Meta::BEGIN@11 which was called:
# once (46µs+432µs) by Moose::Meta::Class::BEGIN@25 at line 12 # spent 432µs making 1 call to base::import | ||
| 12 | 3 | 540µs | 1 | 478µs | 'Class::MOP::Method::Meta'; # spent 478µs making 1 call to Moose::Meta::Method::Meta::BEGIN@11 |
| 13 | |||||
| 14 | sub _is_caller_mop_internal { | ||||
| 15 | my $self = shift; | ||||
| 16 | my ($caller) = @_; | ||||
| 17 | return 1 if $caller =~ /^Moose(?:::|$)/; | ||||
| 18 | return $self->SUPER::_is_caller_mop_internal($caller); | ||||
| 19 | } | ||||
| 20 | |||||
| 21 | # XXX: ugh multiple inheritance | ||||
| 22 | # spent 349ms (6.55+342) within Moose::Meta::Method::Meta::wrap which was called 193 times, avg 1.81ms/call:
# 193 times (6.55ms+342ms) by Class::MOP::Mixin::HasMethods::_add_meta_method at line 30 of Class/MOP/Mixin/HasMethods.pm, avg 1.81ms/call | ||||
| 23 | 386 | 6.78ms | my $class = shift; | ||
| 24 | 193 | 342ms | return $class->Class::MOP::Method::Meta::wrap(@_); # spent 342ms making 193 calls to Class::MOP::Method::Meta::wrap, avg 1.77ms/call | ||
| 25 | } | ||||
| 26 | |||||
| 27 | # spent 5.85ms (1.29+4.56) within Moose::Meta::Method::Meta::_make_compatible_with which was called 42 times, avg 139µs/call:
# 42 times (1.29ms+4.56ms) by Class::MOP::Mixin::HasMethods::_restore_metamethods_from at line 217 of Class/MOP/Mixin/HasMethods.pm, avg 139µs/call | ||||
| 28 | 84 | 1.28ms | my $self = shift; | ||
| 29 | 42 | 4.56ms | return $self->Class::MOP::Method::Meta::_make_compatible_with(@_); # spent 4.56ms making 42 calls to Class::MOP::Method::Meta::_make_compatible_with, avg 109µs/call | ||
| 30 | } | ||||
| 31 | |||||
| 32 | 1 | 12µs | 1; | ||
| 33 | |||||
| 34 | __END__ |