← Index
NYTProf Performance Profile   « block view • line view • sub view »
For 05.Domain_and_Item.t
  Run on Tue May 4 17:21:41 2010
Reported on Tue May 4 17:23:07 2010

File /data/SimpleDB-Class/author.t/lib/Foo/Domain.pm
Statements Executed 69
Statement Execution Time 372µs
Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
3022196µs1.71msFoo::Domain::::__ANON__[lib/Foo/Domain.pm:13]Foo::Domain::__ANON__[lib/Foo/Domain.pm:13]
11141µs2.60msFoo::Domain::::BEGIN@3Foo::Domain::BEGIN@3
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Foo::Domain;
2
33142µs25.16ms
# spent 2.60ms (41µs+2.56) within Foo::Domain::BEGIN@3 which was called # once (41µs+2.56ms) by Module::Find::useall at line 3
use Moose;
# spent 2.60ms making 1 call to Foo::Domain::BEGIN@3 # spent 2.56ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:389]
412µs1226µsextends 'SimpleDB::Class::Item';
# spent 226µs making 1 call to Moose::extends
5
614µs130µs__PACKAGE__->set_domain_name('foo_domain');
# spent 30µs making 1 call to SimpleDB::Class::Item::set_domain_name
7__PACKAGE__->add_attributes(
8 color =>{isa=>'Str'},
9 size =>{isa=>'Str',
10
# spent 1.71ms (196µs+1.51) within Foo::Domain::__ANON__[lib/Foo/Domain.pm:13] which was called 30 times, avg 57µs/call: # 29 times (192µs+1.48ms) by Moose::Meta::Class::new_object at line 267 of Moose/Meta/Class.pm, avg 58µs/call # once (4µs+37µs) by Foo::Domain::size at line 10 of generated method (unknown origin)
trigger=>sub {
113035µs my ($self, $new, $old) = @_;
1230147µs301.51ms $self->size_formatted(ucfirst($new));
# spent 1.51ms making 30 calls to Foo::Domain::size_formatted, avg 50µs/call
13 },
14 },
1519µs111.3ms size_formatted =>{isa=>'Str' },
# spent 11.3ms making 1 call to SimpleDB::Class::Item::add_attributes
16 parentId =>{isa=>'Str'},
17 quantity =>{isa=>'Int'},
18 properties =>{isa=>'HashRef'},
19 start_date =>{isa=>'DateTime'},
20 notes =>{isa=>'MediumStr'},
21 components =>{isa=>'ArrayRefOfStr'},
22 );
2316µs119µs__PACKAGE__->has_many('children', 'Foo::Child', 'domainId', mate=>'domain', consistent=>1); # consistent because we run tests in real time
# spent 19µs making 1 call to SimpleDB::Class::Item::has_many
2414µs11.90ms__PACKAGE__->belongs_to('parent', 'Foo::Parent', 'parentId', consistent=>1);
# spent 1.90ms making 1 call to SimpleDB::Class::Item::belongs_to
25
26
27122µs1;
28