| Filename | /home/mickey/git_tree/PONAPI/Server/lib/Test/PONAPI/Repository/MockDB/Table/People.pm |
| Statements | Executed 14 statements in 246µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 19µs | 3.19ms | Test::PONAPI::Repository::MockDB::Table::People::BEGIN@4 |
| 1 | 1 | 1 | 14µs | 45µs | Test::PONAPI::Repository::MockDB::Table::People::BUILDARGS |
| 1 | 1 | 1 | 8µs | 84µs | Test::PONAPI::Repository::MockDB::Table::People::BEGIN@36 |
| 1 | 1 | 1 | 5µs | 5µs | Test::PONAPI::Repository::MockDB::Table::People::BEGIN@7 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | # ABSTRACT: mock repository - table - People | ||||
| 2 | package Test::PONAPI::Repository::MockDB::Table::People; | ||||
| 3 | |||||
| 4 | 2 | 57µs | 2 | 6.35ms | # spent 3.19ms (19µs+3.17) within Test::PONAPI::Repository::MockDB::Table::People::BEGIN@4 which was called:
# once (19µs+3.17ms) by Test::PONAPI::Repository::MockDB::BEGIN@13 at line 4 # spent 3.19ms making 1 call to Test::PONAPI::Repository::MockDB::Table::People::BEGIN@4
# spent 3.17ms making 1 call to Moose::import |
| 5 | |||||
| 6 | 1 | 1µs | 1 | 610µs | extends 'Test::PONAPI::Repository::MockDB::Table'; # spent 610µs making 1 call to Moose::extends |
| 7 | 2 | 129µs | 1 | 5µs | # spent 5µs within Test::PONAPI::Repository::MockDB::Table::People::BEGIN@7 which was called:
# once (5µs+0s) by Test::PONAPI::Repository::MockDB::BEGIN@13 at line 7 # spent 5µs making 1 call to Test::PONAPI::Repository::MockDB::Table::People::BEGIN@7 |
| 8 | |||||
| 9 | # spent 45µs (14+31) within Test::PONAPI::Repository::MockDB::Table::People::BUILDARGS which was called:
# once (14µs+31µs) by Test::PONAPI::Repository::MockDB::Table::People::new at line 15 of (eval 45)[Eval/Closure.pm:144] | ||||
| 10 | 1 | 400ns | my $class = shift; | ||
| 11 | 1 | 2µs | my %args = @_ == 1 ? %{ $_[0] } : @_; | ||
| 12 | |||||
| 13 | 1 | 5µs | 1 | 31µs | my $to_articles = # spent 31µs making 1 call to Test::PONAPI::Repository::MockDB::Table::Relationships::new |
| 14 | Test::PONAPI::Repository::MockDB::Table::Relationships->new( | ||||
| 15 | TYPE => 'articles', | ||||
| 16 | TABLE => 'rel_articles_people', | ||||
| 17 | ID_COLUMN => 'id_people', | ||||
| 18 | REL_ID_COLUMN => 'id_articles', | ||||
| 19 | COLUMNS => [qw/ id_articles id_people /], | ||||
| 20 | ONE_TO_ONE => 0, | ||||
| 21 | ); | ||||
| 22 | |||||
| 23 | 1 | 6µs | %args = ( | ||
| 24 | TYPE => 'people', | ||||
| 25 | TABLE => 'people', | ||||
| 26 | ID_COLUMN => 'id', | ||||
| 27 | COLUMNS => [qw/ id name age gender /], | ||||
| 28 | RELATIONS => { articles => $to_articles, }, | ||||
| 29 | %args, | ||||
| 30 | ); | ||||
| 31 | |||||
| 32 | 1 | 3µs | return \%args; | ||
| 33 | } | ||||
| 34 | |||||
| 35 | 1 | 3µs | 2 | 8.53ms | __PACKAGE__->meta->make_immutable; # spent 8.52ms making 1 call to Class::MOP::Class::make_immutable
# spent 11µs making 1 call to Test::PONAPI::Repository::MockDB::Table::People::meta |
| 36 | 3 | 40µs | 2 | 159µs | # spent 84µs (8+76) within Test::PONAPI::Repository::MockDB::Table::People::BEGIN@36 which was called:
# once (8µs+76µs) by Test::PONAPI::Repository::MockDB::BEGIN@13 at line 36 # spent 84µs making 1 call to Test::PONAPI::Repository::MockDB::Table::People::BEGIN@36
# spent 76µs making 1 call to Moose::unimport |
| 37 | |||||
| 38 | __END__ |