File | /data/SimpleDB-Class/author.t/lib/Foo/Domain.pm |
Statements Executed | 69 |
Statement Execution Time | 372µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
30 | 2 | 2 | 196µs | 1.71ms | __ANON__[lib/Foo/Domain.pm:13] | Foo::Domain::
1 | 1 | 1 | 41µs | 2.60ms | BEGIN@3 | Foo::Domain::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Foo::Domain; | ||||
2 | |||||
3 | 3 | 142µs | 2 | 5.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 # 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] |
4 | 1 | 2µs | 1 | 226µs | extends 'SimpleDB::Class::Item'; # spent 226µs making 1 call to Moose::extends |
5 | |||||
6 | 1 | 4µs | 1 | 30µ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) | ||||
11 | 30 | 35µs | my ($self, $new, $old) = @_; | ||
12 | 30 | 147µs | 30 | 1.51ms | $self->size_formatted(ucfirst($new)); # spent 1.51ms making 30 calls to Foo::Domain::size_formatted, avg 50µs/call |
13 | }, | ||||
14 | }, | ||||
15 | 1 | 9µs | 1 | 11.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 | ); | ||||
23 | 1 | 6µs | 1 | 19µ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 |
24 | 1 | 4µs | 1 | 1.90ms | __PACKAGE__->belongs_to('parent', 'Foo::Parent', 'parentId', consistent=>1); # spent 1.90ms making 1 call to SimpleDB::Class::Item::belongs_to |
25 | |||||
26 | |||||
27 | 1 | 22µs | 1; | ||
28 |