← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/bin/epoll_server.pl
  Run on Wed Jan 5 05:34:33 2011
Reported on Wed Jan 5 05:35:56 2011

File /usr/lib/perl5/vendor_perl/5.10.1/i386-linux-thread-multi/Moose/Meta/Role/Method/Required.pm
Statements Executed 26
Statement Execution Time 652µs
Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
611117µs1.37msMoose::Meta::Role::Method::Required::::newMoose::Meta::Role::Method::Required::new
11125µs31µsMoose::Meta::Role::Method::Required::::BEGIN@4Moose::Meta::Role::Method::Required::BEGIN@4
11120µs81µsMoose::Meta::Role::Method::Required::::BEGIN@8Moose::Meta::Role::Method::Required::BEGIN@8
11115µs281µsMoose::Meta::Role::Method::Required::::BEGIN@6Moose::Meta::Role::Method::Required::BEGIN@6
11114µs117µsMoose::Meta::Role::Method::Required::::BEGIN@11Moose::Meta::Role::Method::Required::BEGIN@11
11114µs38µsMoose::Meta::Role::Method::Required::::BEGIN@5Moose::Meta::Role::Method::Required::BEGIN@5
0000s0sMoose::Meta::Role::Method::Required::::__ANON__[:8]Moose::Meta::Role::Method::Required::__ANON__[:8]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
2package Moose::Meta::Role::Method::Required;
3
4338µs236µs
# spent 31µs (25+5) within Moose::Meta::Role::Method::Required::BEGIN@4 which was called # once (25µs+5µs) by Moose::Meta::Role::BEGIN@19 at line 4
use strict;
# spent 31µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@4 # spent 5µs making 1 call to strict::import
5336µs262µs
# spent 38µs (14+24) within Moose::Meta::Role::Method::Required::BEGIN@5 which was called # once (14µs+24µs) by Moose::Meta::Role::BEGIN@19 at line 5
use warnings;
# spent 38µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@5 # spent 24µs making 1 call to warnings::import
63275µs2546µs
# spent 281µs (15+266) within Moose::Meta::Role::Method::Required::BEGIN@6 which was called # once (15µs+266µs) by Moose::Meta::Role::BEGIN@19 at line 6
use metaclass;
# spent 281µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@6 # spent 266µs making 1 call to metaclass::import
7
8
# spent 81µs (20+61) within Moose::Meta::Role::Method::Required::BEGIN@8 which was called # once (20µs+61µs) by Moose::Meta::Role::BEGIN@19 at line 9
use overload '""' => sub { shift->name }, # stringify to method name
9349µs2142µs fallback => 1;
# spent 81µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@8 # spent 61µs making 1 call to overload::import
10
113117µs2220µs
# spent 117µs (14+103) within Moose::Meta::Role::Method::Required::BEGIN@11 which was called # once (14µs+103µs) by Moose::Meta::Role::BEGIN@19 at line 11
use base qw(Class::MOP::Object);
# spent 117µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@11 # spent 103µs making 1 call to base::import
12
1311µsour $VERSION = '1.01';
14123µs$VERSION = eval $VERSION;
1511µsour $AUTHORITY = 'cpan:STEVAN';
16
17# This is not a Moose::Meta::Role::Method because it has no implementation, it
18# is just a name
19
2018µs21.19ms__PACKAGE__->meta->add_attribute('name' => (
# spent 1.15ms making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute # spent 32µs making 1 call to Moose::Meta::Role::Method::Required::meta
21 reader => 'name',
22 required => 1,
23));
24
25697µs61.26ms
# spent 1.37ms (117µs+1.26) within Moose::Meta::Role::Method::Required::new which was called 6 times, avg 229µs/call: # 6 times (117µs+1.26ms) by Moose::Meta::Role::add_required_methods at line 215 of Moose/Meta/Role.pm, avg 229µs/call
sub new { shift->_new(@_) }
# spent 1.26ms making 6 calls to Moose::Meta::Role::Method::Required::_new, avg 210µs/call
26
2718µs1;
28
29__END__
30
31=pod
32
33=head1 NAME
34
35Moose::Meta::Role::Method::Required - A Moose metaclass for required methods in Roles
36
37=head1 DESCRIPTION
38
39=head1 INHERITANCE
40
41C<Moose::Meta::Role::Method::Required> is a subclass of L<Class::MOP::Object>.
42It is B<not> a subclass of C<Moose::Meta::Role::Method> since it does not
43provide an implementation of the method.
44
45=head1 METHODS
46
47=over 4
48
49=item B<< Moose::Meta::Role::Method::Required->new(%options) >>
50
51This creates a new type constraint based on the provided C<%options>:
52
53=over 8
54
55=item * name
56
57The method name. This is required.
58
59=back
60
61=item B<< $method->name >>
62
63Returns the required method's name, as provided to the constructor.
64
65=back
66
67=head1 BUGS
68
69See L<Moose/BUGS> for details on reporting bugs.
70
71=head1 AUTHOR
72
73Stevan Little E<lt>stevan@iinteractive.comE<gt>
74
75=head1 COPYRIGHT AND LICENSE
76
77Copyright 2006-2010 by Infinity Interactive, Inc.
78
79L<http://www.iinteractive.com>
80
81This library is free software; you can redistribute it and/or modify
82it under the same terms as Perl itself.
83
84=cut