← Index
NYTProf Performance Profile   « block view • line view • sub view »
For xt/tapper-mcp-scheduler-with-db-longrun.t
  Run on Tue May 22 17:18:39 2012
Reported on Tue May 22 17:22:35 2012

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
StatementsExecuted 24 statements in 248µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
41118µs133µsMoose::Meta::Role::Method::Required::::newMoose::Meta::Role::Method::Required::new
11111µs51µsMoose::Meta::Role::Method::Required::::BEGIN@14Moose::Meta::Role::Method::Required::BEGIN@14
1119µs594µsMoose::Meta::Role::Method::Required::::BEGIN@12Moose::Meta::Role::Method::Required::BEGIN@12
1118µs8µsMoose::Meta::Role::Method::Required::::BEGIN@3Moose::Meta::Role::Method::Required::BEGIN@3
1118µs75µsMoose::Meta::Role::Method::Required::::BEGIN@17Moose::Meta::Role::Method::Required::BEGIN@17
1117µs12µsMoose::Meta::Role::Method::Required::::BEGIN@10Moose::Meta::Role::Method::Required::BEGIN@10
1117µs15µsMoose::Meta::Role::Method::Required::::BEGIN@11Moose::Meta::Role::Method::Required::BEGIN@11
0000s0sMoose::Meta::Role::Method::Required::::__ANON__[:14]Moose::Meta::Role::Method::Required::__ANON__[:14]
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
# 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
BEGIN {
416µs $Moose::Meta::Role::Method::Required::AUTHORITY = 'cpan:STEVAN';
5122µs18µs}
# spent 8µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@3
6{
721µs $Moose::Meta::Role::Method::Required::VERSION = '2.0602';
8}
9
10316µs217µ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
use strict;
# spent 12µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@10 # spent 5µs making 1 call to strict::import
11316µs223µ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
use warnings;
# spent 15µs making 1 call to Moose::Meta::Role::Method::Required::BEGIN@11 # spent 8µs making 1 call to warnings::import
12354µs21.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
use metaclass;
# 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
use overload '""' => sub { shift->name }, # stringify to method name
15324µs291µ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
17380µs2143µ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
use base qw(Class::MOP::Object);
# 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
2216µs3568µ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
28416µs4115µ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
sub new { shift->_new(@_) }
# spent 115µs making 4 calls to Moose::Meta::Role::Method::Required::_new, avg 29µs/call
29
3016µs1;
31
32# ABSTRACT: A Moose metaclass for required methods in Roles
33
- -
36=pod
37
38=head1 NAME
39
40Moose::Meta::Role::Method::Required - A Moose metaclass for required methods in Roles
41
42=head1 VERSION
43
44version 2.0602
45
46=head1 DESCRIPTION
47
48=head1 INHERITANCE
49
50C<Moose::Meta::Role::Method::Required> is a subclass of L<Class::MOP::Object>.
51It is B<not> a subclass of C<Moose::Meta::Role::Method> since it does not
52provide 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
60This creates a new type constraint based on the provided C<%options>:
61
62=over 8
63
64=item * name
65
66The method name. This is required.
67
68=back
69
70=item B<< $method->name >>
71
72Returns the required method's name, as provided to the constructor.
73
74=back
75
76=head1 BUGS
77
78See L<Moose/BUGS> for details on reporting bugs.
79
80=head1 AUTHOR
81
82Moose 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
86This software is copyright (c) 2012 by Infinity Interactive, Inc..
87
88This is free software; you can redistribute it and/or modify it under
89the same terms as the Perl 5 programming language system itself.
90
91=cut
92
93
94__END__