← 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:14:28 2010

Filename/home/doy/nytprof/markdent/accessor role_generator 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 93 statements in 896µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
0000s0sClass::MOP::Method::Generated::::__ANON__[accessor role_generator defined at MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm:51]Class::MOP::Method::Generated::__ANON__[accessor role_generator defined at MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm:51]
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 37 "accessor role_generator 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 (role_generator) does not pass the type constraint because: " . $type_constraint_obj->get_message($_[1]), data => $_[1]);
13
14$_[0]->{"role_generator"} = $_[1];
15
16 }
17
18
19return $_[0]->{"role_generator"}
20 }
21;
22
- -
37
- -
3944154µs
- -
43227µs226µs
# spent 26µs making 2 calls to Moose::Util::TypeConstraints::OptimizedConstraints::CodeRef, avg 13µs/call
- -
45212µs
- -
5044675µs
- -
52129µs