← 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/Comments.pm
StatementsExecuted 14 statements in 234µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11119µs3.20msTest::PONAPI::Repository::MockDB::Table::Comments::::BEGIN@4Test::PONAPI::Repository::MockDB::Table::Comments::BEGIN@4
11114µs40µsTest::PONAPI::Repository::MockDB::Table::Comments::::BUILDARGSTest::PONAPI::Repository::MockDB::Table::Comments::BUILDARGS
1117µs79µsTest::PONAPI::Repository::MockDB::Table::Comments::::BEGIN@36Test::PONAPI::Repository::MockDB::Table::Comments::BEGIN@36
1116µs6µsTest::PONAPI::Repository::MockDB::Table::Comments::::BEGIN@7Test::PONAPI::Repository::MockDB::Table::Comments::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 - Comments
2package Test::PONAPI::Repository::MockDB::Table::Comments;
3
4258µs26.37ms
# spent 3.20ms (19µs+3.18) within Test::PONAPI::Repository::MockDB::Table::Comments::BEGIN@4 which was called: # once (19µs+3.18ms) by Test::PONAPI::Repository::MockDB::BEGIN@14 at line 4
use Moose;
# spent 3.20ms making 1 call to Test::PONAPI::Repository::MockDB::Table::Comments::BEGIN@4 # spent 3.18ms making 1 call to Moose::import
511µs1574µsextends 'Test::PONAPI::Repository::MockDB::Table';
# spent 574µs making 1 call to Moose::extends
6
72119µs16µs
# spent 6µs within Test::PONAPI::Repository::MockDB::Table::Comments::BEGIN@7 which was called: # once (6µs+0s) by Test::PONAPI::Repository::MockDB::BEGIN@14 at line 7
use Test::PONAPI::Repository::MockDB::Table::Relationships;
8
9
# spent 40µs (14+26) within Test::PONAPI::Repository::MockDB::Table::Comments::BUILDARGS which was called: # once (14µs+26µs) by Test::PONAPI::Repository::MockDB::Table::Comments::new at line 15 of (eval 45)[Eval/Closure.pm:144]
sub BUILDARGS {
1011µs my $class = shift;
1112µs my %args = @_ == 1 ? %{ $_[0] } : @_;
12
1314µs126µs my $to_articles =
14 Test::PONAPI::Repository::MockDB::Table::Relationships->new(
15 TYPE => 'articles',
16 TABLE => 'rel_articles_comments',
17 ID_COLUMN => 'id_comments',
18 REL_ID_COLUMN => 'id_articles',
19 COLUMNS => [qw/ id_articles id_comments /],
20 ONE_TO_ONE => 1,
21 );
22
2314µs %args = (
24 TYPE => 'comments',
25 TABLE => 'comments',
26 ID_COLUMN => 'id',
27 COLUMNS => [qw/ id body /],
28 RELATIONS => { articles => $to_articles, },
29 %args,
30 );
31
3214µs return \%args;
33}
34
3513µs29.47ms__PACKAGE__->meta->make_immutable;
# spent 9.46ms making 1 call to Class::MOP::Class::make_immutable # spent 10µs making 1 call to Test::PONAPI::Repository::MockDB::Table::Comments::meta
36340µs2150µs
# spent 79µs (7+72) within Test::PONAPI::Repository::MockDB::Table::Comments::BEGIN@36 which was called: # once (7µs+72µs) by Test::PONAPI::Repository::MockDB::BEGIN@14 at line 36
no Moose; 1;
# spent 79µs making 1 call to Test::PONAPI::Repository::MockDB::Table::Comments::BEGIN@36 # spent 72µs making 1 call to Moose::unimport
37
38__END__