← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:45:08 2010
Reported on Wed Nov 17 22:10:10 2010

Filename/home/doy/nytprof/markdent/accessor parameters_metaclass defined at /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm
StatementsExecuted 136 statements in 1.19ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
0000s0sClass::MOP::Method::Generated::::__ANON__[accessor parameters_metaclass defined at MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm:52]Class::MOP::Method::Generated::__ANON__[accessor parameters_metaclass defined at MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm:52]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1my $type_constraint = ${$__captures->{'$type_constraint'}};
2my $type_constraint_obj = ${$__captures->{'$type_constraint_obj'}};
3my $meta = ${$__captures->{'$meta'}};
4my $attr = ${$__captures->{'$attr'}};
5#line 32 "accessor parameters_metaclass defined at /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm"
6sub {
7
8if (scalar(@_) >= 2) {
9
- -
12$type_constraint->($_[1]) || $meta->throw_error("Attribute (parameters_metaclass) does not pass the type constraint because: " . $type_constraint_obj->get_message($_[1]), data => $_[1]);
13
14$_[0]->{"parameters_metaclass"} = $_[1];
15
16 }
17unless (exists $_[0]->{"parameters_metaclass"}) {
18 my $default = $attr->default($_[0]);
19
20$type_constraint->($default) || $meta->throw_error("Attribute (parameters_metaclass) does not pass the type constraint because: " . $type_constraint_obj->get_message($default), data => $default);
21 $_[0]->{"parameters_metaclass"} = $default;
22}
23
24
25return $_[0]->{"parameters_metaclass"}
26 }
27;
28
- -
32
- -
341351.16ms
- -
44230.6ms
# spent 30.6ms making 2 calls to Class::MOP::Mixin::AttributeCore::default, avg 15.3ms/call
- -
462173µs
- -
53129µs