← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:39:01 2010
Reported on Wed Nov 17 22:09:13 2010

Filename/home/doy/nytprof/kioku/accessor live_objects defined at /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/KiokuDB/Stream/Objects.pm
StatementsExecuted 1 statements in 36µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
0000s0sClass::MOP::Method::Generated::::__ANON__[accessor live_objects defined at KiokuDB/Stream/Objects.pm:43]Class::MOP::Method::Generated::__ANON__[accessor live_objects defined at KiokuDB/Stream/Objects.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 33 "accessor live_objects defined at /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/KiokuDB/Stream/Objects.pm"
6sub {$meta->throw_error("Cannot assign a value to a read-only accessor", data => \@_) if @_ > 1;unless (exists $_[0]->{"live_objects"}) {
7 my $default;
8 if(my $builder = $_[0]->can($attr->builder)){
9 $default = $_[0]->$builder;
10 } else {
11 $meta->throw_error(sprintf "%s does not support builder method '%s' for attribute '%s'", ref($_[0]) || $_[0], $attr->builder, $attr->name);
12 }
13$type_constraint->($default) || $meta->throw_error("Attribute (live_objects) does not pass the type constraint because: " . $type_constraint_obj->get_message($default), data => $default);
14 $_[0]->{"live_objects"} = $default;
15}
16return $_[0]->{"live_objects"};}
17;
18
- -
33
- -
44136µs