| Filename | /home/doy/coding/src/Moose/blib/lib//Moose/Meta/Method/Meta.pm |
| Statements | Executed 399 statements in 7.03ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 151 | 1 | 1 | 5.01ms | 271ms | Moose::Meta::Method::Meta::wrap |
| 42 | 1 | 1 | 1.26ms | 5.89ms | Moose::Meta::Method::Meta::_make_compatible_with |
| 1 | 1 | 1 | 100µs | 118µs | Moose::Meta::Method::Meta::BEGIN@4 |
| 1 | 1 | 1 | 40µs | 452µs | Moose::Meta::Method::Meta::BEGIN@11 |
| 1 | 1 | 1 | 38µs | 107µ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 | 102µs | 2 | 136µs | # spent 118µs (100+18) within Moose::Meta::Method::Meta::BEGIN@4 which was called:
# once (100µs+18µs) by Moose::Meta::Class::BEGIN@25 at line 4 # spent 118µs making 1 call to Moose::Meta::Method::Meta::BEGIN@4
# spent 18µs making 1 call to strict::import |
| 5 | 3 | 235µs | 2 | 176µs | # spent 107µs (38+69) within Moose::Meta::Method::Meta::BEGIN@5 which was called:
# once (38µs+69µs) by Moose::Meta::Class::BEGIN@25 at line 5 # spent 107µs making 1 call to Moose::Meta::Method::Meta::BEGIN@5
# spent 69µs making 1 call to warnings::import |
| 6 | |||||
| 7 | 1 | 4µs | our $VERSION = '1.19'; | ||
| 8 | 1 | 56µs | $VERSION = eval $VERSION; # spent 10µs executing statements in string eval | ||
| 9 | 1 | 3µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 10 | |||||
| 11 | 1 | 412µs | # spent 452µs (40+412) within Moose::Meta::Method::Meta::BEGIN@11 which was called:
# once (40µs+412µs) by Moose::Meta::Class::BEGIN@25 at line 12 # spent 412µs making 1 call to base::import | ||
| 12 | 3 | 492µs | 1 | 452µs | 'Class::MOP::Method::Meta'; # spent 452µ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 271ms (5.01+266) within Moose::Meta::Method::Meta::wrap which was called 151 times, avg 1.80ms/call:
# 151 times (5.01ms+266ms) by Class::MOP::Mixin::HasMethods::_add_meta_method at line 28 of Class/MOP/Mixin/HasMethods.pm, avg 1.80ms/call | ||||
| 23 | 302 | 4.89ms | my $class = shift; | ||
| 24 | 151 | 266ms | return $class->Class::MOP::Method::Meta::wrap(@_); # spent 266ms making 151 calls to Class::MOP::Method::Meta::wrap, avg 1.76ms/call | ||
| 25 | } | ||||
| 26 | |||||
| 27 | # spent 5.89ms (1.26+4.63) within Moose::Meta::Method::Meta::_make_compatible_with which was called 42 times, avg 140µs/call:
# 42 times (1.26ms+4.63ms) by Class::MOP::Mixin::HasMethods::_restore_metamethods_from at line 175 of Class/MOP/Mixin/HasMethods.pm, avg 140µs/call | ||||
| 28 | 84 | 1.24ms | my $self = shift; | ||
| 29 | 42 | 4.63ms | return $self->Class::MOP::Method::Meta::_make_compatible_with(@_); # spent 4.63ms making 42 calls to Class::MOP::Method::Meta::_make_compatible_with, avg 110µs/call | ||
| 30 | } | ||||
| 31 | |||||
| 32 | 1 | 11µs | 1; | ||
| 33 | |||||
| 34 | __END__ |