| Filename | /home/ss5/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/x86_64-linux/Moose/Meta/Role/Method/Required.pm |
| Statements | Executed 13 statements in 146µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 9µs | 12µs | Moose::Meta::Role::Method::Required::BEGIN@5 |
| 1 | 1 | 1 | 8µs | 9µs | Moose::Meta::Role::Method::Required::BEGIN@4 |
| 1 | 1 | 1 | 7µs | 32µs | Moose::Meta::Role::Method::Required::BEGIN@9 |
| 1 | 1 | 1 | 5µs | 278µs | Moose::Meta::Role::Method::Required::BEGIN@6 |
| 1 | 1 | 1 | 4µs | 18µs | Moose::Meta::Role::Method::Required::BEGIN@13 |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Role::Method::Required::__ANON__[:10] |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Role::Method::Required::__ANON__[:9] |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Role::Method::Required::new |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Role::Method::Required; | ||||
| 2 | 1 | 200ns | our $VERSION = '2.1605'; | ||
| 3 | |||||
| 4 | 2 | 14µs | 2 | 11µs | # spent 9µs (8+1) within Moose::Meta::Role::Method::Required::BEGIN@4 which was called:
# once (8µs+1µs) by Moose::Meta::Role::BEGIN@13 at line 4 # spent 9µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@4
# spent 1µs making 1 call to strict::import |
| 5 | 2 | 13µs | 2 | 15µs | # spent 12µs (9+3) within Moose::Meta::Role::Method::Required::BEGIN@5 which was called:
# once (9µs+3µs) by Moose::Meta::Role::BEGIN@13 at line 5 # spent 12µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@5
# spent 3µs making 1 call to warnings::import |
| 6 | 2 | 48µs | 2 | 551µs | # spent 278µs (5+273) within Moose::Meta::Role::Method::Required::BEGIN@6 which was called:
# once (5µs+273µs) by Moose::Meta::Role::BEGIN@13 at line 6 # spent 278µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@6
# spent 273µs making 1 call to metaclass::import |
| 7 | |||||
| 8 | use overload | ||||
| 9 | # spent 32µs (7+26) within Moose::Meta::Role::Method::Required::BEGIN@9 which was called:
# once (7µs+26µs) by Moose::Meta::Role::BEGIN@13 at line 11 | ||||
| 10 | 'bool' => sub { 1 }, | ||||
| 11 | 2 | 19µs | 2 | 58µs | fallback => 1; # spent 32µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@9
# spent 26µs making 1 call to overload::import |
| 12 | |||||
| 13 | 2 | 46µs | 2 | 31µs | # spent 18µs (4+13) within Moose::Meta::Role::Method::Required::BEGIN@13 which was called:
# once (4µs+13µs) by Moose::Meta::Role::BEGIN@13 at line 13 # spent 18µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@13
# spent 13µ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 | 2µs | 3 | 215µs | __PACKAGE__->meta->add_attribute('name' => ( # spent 198µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute
# spent 13µ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 | sub new { shift->_new(@_) } | ||||
| 25 | |||||
| 26 | 1 | 3µs | 1; | ||
| 27 | |||||
| 28 | # ABSTRACT: A Moose metaclass for required methods in Roles | ||||
| 29 | |||||
| 30 | __END__ |