Profile of Moose/Meta/Method/Meta.pm

← Index
NYTProf Performance Profile «line view»
For script/ponapi
Run on Wed Feb 10 15:51:26 2016
Reported on Thu Feb 11 09:43:10 2016

Filename | /usr/local/lib/perl/5.18.2/Moose/Meta/Method/Meta.pm
Statements | Executed 156 statements in 535µs

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
74 | 1 | 1 | 388µs | 17.1ms | Moose::Meta::Method::Meta::::wrapMoose::Meta::Method::Meta::wrap
1 | 1 | 1 | 9µs | 18µs | Moose::Meta::Method::Meta::::BEGIN@4Moose::Meta::Method::Meta::BEGIN@4
1 | 1 | 1 | 6µs | 9µs | Moose::Meta::Method::Meta::::BEGIN@5Moose::Meta::Method::Meta::BEGIN@5
1 | 1 | 1 | 5µs | 31µs | Moose::Meta::Method::Meta::::BEGIN@7Moose::Meta::Method::Meta::BEGIN@7
0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Meta::::_is_caller_mop_internalMoose::Meta::Method::Meta::_is_caller_mop_internal
0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Meta::::_make_compatible_withMoose::Meta::Method::Meta::_make_compatible_with

Call graph for these subroutines as a Graphviz dot language file.

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | package Moose::Meta::Method::Meta;
2 | 1 | 500ns |  |  | our $VERSION = '2.1604';
3 |  |  |  |  |
4 | 2 | 19µs | 2 | 27µs | # spent 18µs (9+9) within Moose::Meta::Method::Meta::BEGIN@4 which was called: # once (9µs+9µs) by Moose::Meta::Class::BEGIN@18 at line 4 use strict; # spent 18µs making 1 call to Moose::Meta::Method::Meta::BEGIN@4 # spent 9µs making 1 call to strict::import
5 | 2 | 25µs | 2 | 12µs | # spent 9µs (6+3) within Moose::Meta::Method::Meta::BEGIN@5 which was called: # once (6µs+3µs) by Moose::Meta::Class::BEGIN@18 at line 5 use warnings; # spent 9µs making 1 call to Moose::Meta::Method::Meta::BEGIN@5 # spent 3µs making 1 call to warnings::import
6 |  |  |  |  |
7 | 1 | 3µs | 1 | 26µs | # spent 31µs (5+26) within Moose::Meta::Method::Meta::BEGIN@7 which was called: # once (5µs+26µs) by Moose::Meta::Class::BEGIN@18 at line 8 use parent 'Moose::Meta::Method', # spent 26µs making 1 call to parent::import
8 | 1 | 107µs | 1 | 31µs | 'Class::MOP::Method::Meta'; # spent 31µs making 1 call to Moose::Meta::Method::Meta::BEGIN@7
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 17.1ms (388µs+16.7) within Moose::Meta::Method::Meta::wrap which was called 74 times, avg 231µs/call: # 74 times (388µs+16.7ms) by Class::MOP::Mixin::HasMethods::_add_meta_method at line 24 of Class/MOP/Mixin/HasMethods.pm, avg 231µs/call sub wrap {
19 | 74 | 27µs |  |  | my $class = shift;
20 | 74 | 352µs | 74 | 16.7ms | return $class->Class::MOP::Method::Meta::wrap(@_); # spent 16.7ms making 74 calls to Class::MOP::Method::Meta::wrap, avg 226µ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 | 2µs |  |  | 1;
29 |  |  |  |  |
30 |  |  |  |  | # ABSTRACT: A Moose Method metaclass for C<meta> methods
31 |  |  |  |  |
32 |  |  |  |  | __END__