Filename | /2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/x86_64-linux/Moose/Meta/Role/Method/Required.pm |
Statements | Executed 24 statements in 248µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
4 | 1 | 1 | 18µs | 133µs | new | Moose::Meta::Role::Method::Required::
1 | 1 | 1 | 11µs | 51µs | BEGIN@14 | Moose::Meta::Role::Method::Required::
1 | 1 | 1 | 9µs | 594µs | BEGIN@12 | Moose::Meta::Role::Method::Required::
1 | 1 | 1 | 8µs | 8µs | BEGIN@3 | Moose::Meta::Role::Method::Required::
1 | 1 | 1 | 8µs | 75µs | BEGIN@17 | Moose::Meta::Role::Method::Required::
1 | 1 | 1 | 7µs | 12µs | BEGIN@10 | Moose::Meta::Role::Method::Required::
1 | 1 | 1 | 7µs | 15µs | BEGIN@11 | Moose::Meta::Role::Method::Required::
0 | 0 | 0 | 0s | 0s | __ANON__[:14] | Moose::Meta::Role::Method::Required::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | |||||
2 | package Moose::Meta::Role::Method::Required; | ||||
3 | # spent 8µs within Moose::Meta::Role::Method::Required::BEGIN@3 which was called:
# once (8µs+0s) by Moose::Meta::Role::BEGIN@21 at line 5 | ||||
4 | 1 | 6µs | $Moose::Meta::Role::Method::Required::AUTHORITY = 'cpan:STEVAN'; | ||
5 | 1 | 22µs | 1 | 8µs | } # spent 8µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@3 |
6 | { | ||||
7 | 2 | 1µs | $Moose::Meta::Role::Method::Required::VERSION = '2.0602'; | ||
8 | } | ||||
9 | |||||
10 | 3 | 16µs | 2 | 17µs | # spent 12µs (7+5) within Moose::Meta::Role::Method::Required::BEGIN@10 which was called:
# once (7µs+5µs) by Moose::Meta::Role::BEGIN@21 at line 10 # spent 12µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@10
# spent 5µs making 1 call to strict::import |
11 | 3 | 16µs | 2 | 23µs | # spent 15µs (7+8) within Moose::Meta::Role::Method::Required::BEGIN@11 which was called:
# once (7µs+8µs) by Moose::Meta::Role::BEGIN@21 at line 11 # spent 15µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@11
# spent 8µs making 1 call to warnings::import |
12 | 3 | 54µs | 2 | 1.18ms | # spent 594µs (9+586) within Moose::Meta::Role::Method::Required::BEGIN@12 which was called:
# once (9µs+586µs) by Moose::Meta::Role::BEGIN@21 at line 12 # spent 594µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@12
# spent 586µs making 1 call to metaclass::import |
13 | |||||
14 | # spent 51µs (11+40) within Moose::Meta::Role::Method::Required::BEGIN@14 which was called:
# once (11µs+40µs) by Moose::Meta::Role::BEGIN@21 at line 15 | ||||
15 | 3 | 24µs | 2 | 91µs | fallback => 1; # spent 51µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@14
# spent 40µs making 1 call to overload::import |
16 | |||||
17 | 3 | 80µs | 2 | 143µs | # spent 75µs (8+67) within Moose::Meta::Role::Method::Required::BEGIN@17 which was called:
# once (8µs+67µs) by Moose::Meta::Role::BEGIN@21 at line 17 # spent 75µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@17
# spent 68µs making 1 call to base::import |
18 | |||||
19 | # This is not a Moose::Meta::Role::Method because it has no implementation, it | ||||
20 | # is just a name | ||||
21 | |||||
22 | 1 | 6µs | 3 | 568µs | __PACKAGE__->meta->add_attribute('name' => ( # spent 544µ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 9µs making 1 call to Class::MOP::_definition_context |
23 | reader => 'name', | ||||
24 | required => 1, | ||||
25 | Class::MOP::_definition_context(), | ||||
26 | )); | ||||
27 | |||||
28 | 4 | 16µs | 4 | 115µs | # spent 133µs (18+115) within Moose::Meta::Role::Method::Required::new which was called 4 times, avg 33µs/call:
# 4 times (18µs+115µs) by Moose::Meta::Role::add_required_methods at line 267 of Moose/Meta/Role.pm, avg 33µs/call # spent 115µs making 4 calls to Moose::Meta::Role::Method::Required::_new, avg 29µs/call |
29 | |||||
30 | 1 | 6µs | 1; | ||
31 | |||||
32 | # ABSTRACT: A Moose metaclass for required methods in Roles | ||||
33 | |||||
- - | |||||
36 | =pod | ||||
37 | |||||
38 | =head1 NAME | ||||
39 | |||||
40 | Moose::Meta::Role::Method::Required - A Moose metaclass for required methods in Roles | ||||
41 | |||||
42 | =head1 VERSION | ||||
43 | |||||
44 | version 2.0602 | ||||
45 | |||||
46 | =head1 DESCRIPTION | ||||
47 | |||||
48 | =head1 INHERITANCE | ||||
49 | |||||
50 | C<Moose::Meta::Role::Method::Required> is a subclass of L<Class::MOP::Object>. | ||||
51 | It is B<not> a subclass of C<Moose::Meta::Role::Method> since it does not | ||||
52 | provide an implementation of the method. | ||||
53 | |||||
54 | =head1 METHODS | ||||
55 | |||||
56 | =over 4 | ||||
57 | |||||
58 | =item B<< Moose::Meta::Role::Method::Required->new(%options) >> | ||||
59 | |||||
60 | This creates a new type constraint based on the provided C<%options>: | ||||
61 | |||||
62 | =over 8 | ||||
63 | |||||
64 | =item * name | ||||
65 | |||||
66 | The method name. This is required. | ||||
67 | |||||
68 | =back | ||||
69 | |||||
70 | =item B<< $method->name >> | ||||
71 | |||||
72 | Returns the required method's name, as provided to the constructor. | ||||
73 | |||||
74 | =back | ||||
75 | |||||
76 | =head1 BUGS | ||||
77 | |||||
78 | See L<Moose/BUGS> for details on reporting bugs. | ||||
79 | |||||
80 | =head1 AUTHOR | ||||
81 | |||||
82 | Moose is maintained by the Moose Cabal, along with the help of many contributors. See L<Moose/CABAL> and L<Moose/CONTRIBUTORS> for details. | ||||
83 | |||||
84 | =head1 COPYRIGHT AND LICENSE | ||||
85 | |||||
86 | This software is copyright (c) 2012 by Infinity Interactive, Inc.. | ||||
87 | |||||
88 | This is free software; you can redistribute it and/or modify it under | ||||
89 | the same terms as the Perl 5 programming language system itself. | ||||
90 | |||||
91 | =cut | ||||
92 | |||||
93 | |||||
94 | __END__ |