Profile of Moose/Meta/Role/Method/Required.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:11 2016

Filename | /usr/local/lib/perl/5.18.2/Moose/Meta/Role/Method/Required.pm
Statements | Executed 37 statements in 257µs

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
24 | 2 | 1 | 78µs | 379µs | Moose::Meta::Role::Method::Required::::newMoose::Meta::Role::Method::Required::new
1 | 1 | 1 | 9µs | 18µs | Moose::Meta::Role::Method::Required::::BEGIN@4Moose::Meta::Role::Method::Required::BEGIN@4
1 | 1 | 1 | 8µs | 42µs | Moose::Meta::Role::Method::Required::::BEGIN@9Moose::Meta::Role::Method::Required::BEGIN@9
1 | 1 | 1 | 8µs | 25µs | Moose::Meta::Role::Method::Required::::BEGIN@13Moose::Meta::Role::Method::Required::BEGIN@13
1 | 1 | 1 | 6µs | 385µs | Moose::Meta::Role::Method::Required::::BEGIN@6Moose::Meta::Role::Method::Required::BEGIN@6
1 | 1 | 1 | 6µs | 9µs | Moose::Meta::Role::Method::Required::::BEGIN@5Moose::Meta::Role::Method::Required::BEGIN@5
0 | 0 | 0 | 0s | 0s | Moose::Meta::Role::Method::Required::::__ANON__[:10]Moose::Meta::Role::Method::Required::__ANON__[:10]
0 | 0 | 0 | 0s | 0s | Moose::Meta::Role::Method::Required::::__ANON__[:9]Moose::Meta::Role::Method::Required::__ANON__[:9]

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::Role::Method::Required;
2 | 1 | 400ns |  |  | our $VERSION = '2.1604';
3 |  |  |  |  |
4 | 2 | 19µs | 2 | 27µs | # spent 18µs (9+9) within Moose::Meta::Role::Method::Required::BEGIN@4 which was called: # once (9µs+9µs) by Moose::Meta::Role::BEGIN@13 at line 4 use strict; # spent 18µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@4 # spent 9µs making 1 call to strict::import
5 | 2 | 17µs | 2 | 12µs | # spent 9µs (6+3) within Moose::Meta::Role::Method::Required::BEGIN@5 which was called: # once (6µs+3µs) by Moose::Meta::Role::BEGIN@13 at line 5 use warnings; # spent 9µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@5 # spent 3µs making 1 call to warnings::import
6 | 2 | 57µs | 2 | 763µs | # spent 385µs (6+378) within Moose::Meta::Role::Method::Required::BEGIN@6 which was called: # once (6µs+378µs) by Moose::Meta::Role::BEGIN@13 at line 6 use metaclass; # spent 385µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@6 # spent 378µs making 1 call to metaclass::import
7 |  |  |  |  |
8 |  |  |  |  | use overload
9 |  |  |  |  | # spent 42µs (8+33) within Moose::Meta::Role::Method::Required::BEGIN@9 which was called: # once (8µs+33µs) by Moose::Meta::Role::BEGIN@13 at line 11 '""' => sub { shift->name }, # stringify to method name
10 |  |  |  |  | 'bool' => sub { 1 },
11 | 2 | 24µs | 2 | 75µs | fallback => 1; # spent 42µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@9 # spent 33µs making 1 call to overload::import
12 |  |  |  |  |
13 | 2 | 63µs | 2 | 43µs | # spent 25µs (8+18) within Moose::Meta::Role::Method::Required::BEGIN@13 which was called: # once (8µs+18µs) by Moose::Meta::Role::BEGIN@13 at line 13 use parent 'Class::MOP::Object'; # spent 25µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@13 # spent 18µs making 1 call to parent::import
14 |  |  |  |  |
15 |  |  |  |  | # This is not a Moose::Meta::Role::Method because it has no implementation, it
16 |  |  |  |  | # is just a name
17 |  |  |  |  |
18 | 1 | 3µs | 3 | 269µs | __PACKAGE__->meta->add_attribute('name' => ( # spent 250µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 15µs making 1 call to Moose::Meta::Role::Method::Required::meta # spent 4µs making 1 call to Class::MOP::_definition_context
19 |  |  |  |  | reader => 'name',
20 |  |  |  |  | required => 1,
21 |  |  |  |  | Class::MOP::_definition_context(),
22 |  |  |  |  | ));
23 |  |  |  |  |
24 | 24 | 70µs | 24 | 301µs | # spent 379µs (78+301) within Moose::Meta::Role::Method::Required::new which was called 24 times, avg 16µs/call: # 20 times (64µs+191µs) by Moose::Meta::Role::add_required_methods at line 264 of Moose/Meta/Role.pm, avg 13µs/call # 4 times (13µs+110µs) by Moose::Meta::Role::add_conflicting_method at line 281 of Moose/Meta/Role.pm, avg 31µs/call sub new { shift->_new(@_) } # spent 191µs making 20 calls to Moose::Meta::Role::Method::Required::_new, avg 10µs/call # spent 110µs making 4 calls to Moose::Meta::Role::Method::Conflicting::_new, avg 27µs/call
25 |  |  |  |  |
26 | 1 | 4µs |  |  | 1;
27 |  |  |  |  |
28 |  |  |  |  | # ABSTRACT: A Moose metaclass for required methods in Roles
29 |  |  |  |  |
30 |  |  |  |  | __END__