← Index
NYTProf Performance Profile   « line view »
For script/ponapi
  Run on Wed Feb 10 15:51:26 2016
Reported on Thu Feb 11 09:43:11 2016

Filename/home/mickey/git_tree/PONAPI/Server/lib/Test/PONAPI/Repository/MockDB/Table/People.pm
StatementsExecuted 14 statements in 246µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11119µs3.19msTest::PONAPI::Repository::MockDB::Table::People::::BEGIN@4Test::PONAPI::Repository::MockDB::Table::People::BEGIN@4
11114µs45µsTest::PONAPI::Repository::MockDB::Table::People::::BUILDARGSTest::PONAPI::Repository::MockDB::Table::People::BUILDARGS
1118µs84µsTest::PONAPI::Repository::MockDB::Table::People::::BEGIN@36Test::PONAPI::Repository::MockDB::Table::People::BEGIN@36
1115µs5µsTest::PONAPI::Repository::MockDB::Table::People::::BEGIN@7Test::PONAPI::Repository::MockDB::Table::People::BEGIN@7
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# ABSTRACT: mock repository - table - People
2package Test::PONAPI::Repository::MockDB::Table::People;
3
4257µs26.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
use Moose;
# 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
611µs1610µsextends 'Test::PONAPI::Repository::MockDB::Table';
# spent 610µs making 1 call to Moose::extends
72129µs15µ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
use Test::PONAPI::Repository::MockDB::Table::Relationships;
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]
sub BUILDARGS {
101400ns my $class = shift;
1112µs my %args = @_ == 1 ? %{ $_[0] } : @_;
12
1315µs131µs my $to_articles =
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
2316µ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
3213µs return \%args;
33}
34
3513µs28.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
36340µs2159µ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
no Moose; 1;
# 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__