← 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 _stream defined at /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Markdent/Role/HTMLStream.pm
StatementsExecuted 1 statements in 30µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
0000s0sClass::MOP::Method::Generated::::__ANON__[accessor _stream defined at Markdent/Role/HTMLStream.pm:43]Class::MOP::Method::Generated::__ANON__[accessor _stream defined at Markdent/Role/HTMLStream.pm:43]
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 _stream defined at /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Markdent/Role/HTMLStream.pm"
6sub {$meta->throw_error("Cannot assign a value to a read-only accessor", data => \@_) if @_ > 1;unless (exists $_[0]->{"_stream"}) {
7 my $default = $attr->default($_[0]);
8
9$type_constraint->($default) || $meta->throw_error("Attribute (_stream) does not pass the type constraint because: " . $type_constraint_obj->get_message($default), data => $default);
10 $_[0]->{"_stream"} = $default;
11}
12return $_[0]->{"_stream"};}
13;
14
- -
37
- -
44130µs