Profile of lib/Test/PONAPI/Repository/MockDB/Table/Comments.pm

← 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
Statements | Executed 14 statements in 234µs

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 19µs | 3.20ms | Test::PONAPI::Repository::MockDB::Table::Comments::::BEGIN@4Test::PONAPI::Repository::MockDB::Table::Comments::BEGIN@4
1 | 1 | 1 | 14µs | 40µs | Test::PONAPI::Repository::MockDB::Table::Comments::::BUILDARGSTest::PONAPI::Repository::MockDB::Table::Comments::BUILDARGS
1 | 1 | 1 | 7µs | 79µs | Test::PONAPI::Repository::MockDB::Table::Comments::::BEGIN@36Test::PONAPI::Repository::MockDB::Table::Comments::BEGIN@36
1 | 1 | 1 | 6µs | 6µs | Test::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
2 |  |  |  |  | package Test::PONAPI::Repository::MockDB::Table::Comments;
3 |  |  |  |  |
4 | 2 | 58µs | 2 | 6.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
5 | 1 | 1µs | 1 | 574µs | extends 'Test::PONAPI::Repository::MockDB::Table'; # spent 574µs making 1 call to Moose::extends
6 |  |  |  |  |
7 | 2 | 119µs | 1 | 6µ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; # spent 6µs making 1 call to Test::PONAPI::Repository::MockDB::Table::Comments::BEGIN@7
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 {
10 | 1 | 1µs |  |  | my $class = shift;
11 | 1 | 2µs |  |  | my %args = @_ == 1 ? %{ $_[0] } : @_;
12 |  |  |  |  |
13 | 1 | 4µs | 1 | 26µs | my $to_articles = # spent 26µ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_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 |  |  |  |  |
23 | 1 | 4µ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 |  |  |  |  |
32 | 1 | 4µs |  |  | return \%args;
33 |  |  |  |  | }
34 |  |  |  |  |
35 | 1 | 3µs | 2 | 9.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
36 | 3 | 40µs | 2 | 150µ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__