← Index
NYTProf Performance Profile   « block view • line view • sub view »
For xt/tapper-mcp-scheduler-with-db-longrun.t
  Run on Tue May 22 17:18:39 2012
Reported on Tue May 22 17:22:37 2012

Filename/2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/Tapper/Schema/ReportsDB/Result/ReportgroupTestrun.pm
StatementsExecuted 25 statements in 449µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11154µs109µsTapper::Schema::ReportsDB::Result::ReportgroupTestrun::::BEGIN@9Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@9
11112µs12µsTapper::Schema::ReportsDB::Result::ReportgroupTestrun::::BEGIN@2Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@2
11112µs55µsTapper::Schema::ReportsDB::Result::ReportgroupTestrun::::BEGIN@9.27Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@9.27
11110µs14µsTapper::Schema::ReportsDB::Result::ReportgroupTestrun::::BEGIN@10Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@10
1119µs27µsTapper::Schema::ReportsDB::Result::ReportgroupTestrun::::BEGIN@11Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@11
1119µs48µsTapper::Schema::ReportsDB::Result::ReportgroupTestrun::::BEGIN@13Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@13
0000s0sTapper::Schema::ReportsDB::Result::ReportgroupTestrun::::groupreportsTapper::Schema::ReportsDB::Result::ReportgroupTestrun::groupreports
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Tapper::Schema::ReportsDB::Result::ReportgroupTestrun;
2
# spent 12µs within Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@2 which was called: # once (12µs+0s) by Class::C3::Componentised::ensure_class_loaded at line 4
BEGIN {
315µs $Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::AUTHORITY = 'cpan:AMD';
4130µs112µs}
5{
621µs $Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::VERSION = '0.001';
7}
8
9678µs3207µs
# spent 55µs (12+43) within Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@9.27 which was called: # once (12µs+43µs) by Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@9 at line 9 # spent 109µs (54+55) within Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@9 which was called: # once (54µs+55µs) by Class::C3::Componentised::ensure_class_loaded at line 9
use 5.010;
# spent 109µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@9 # spent 55µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@9.27 # spent 43µs making 1 call to feature::import
10321µs218µs
# spent 14µs (10+4) within Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@10 which was called: # once (10µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 10
use strict;
# spent 14µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@10 # spent 4µs making 1 call to strict::import
11320µs244µs
# spent 27µs (9+17) within Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@11 which was called: # once (9µs+17µs) by Class::C3::Componentised::ensure_class_loaded at line 11
use warnings;
# spent 27µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@11 # spent 17µs making 1 call to warnings::import
12
133189µs288µs
# spent 48µs (9+39) within Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@13 which was called: # once (9µs+39µs) by Class::C3::Componentised::ensure_class_loaded at line 13
use parent 'DBIx::Class';
# spent 48µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@13 # spent 39µs making 1 call to parent::import
14
15111µs1237µs__PACKAGE__->load_components("Core");
# spent 237µs making 1 call to Class::C3::Componentised::load_components
16121µs1442µs__PACKAGE__->table("reportgrouptestrun");
# spent 442µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table
17124µs1575µs__PACKAGE__->add_columns
# spent 575µs making 1 call to DBIx::Class::ResultSourceProxy::add_columns
18 (
19 "testrun_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, },
20 "report_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, },
21 "primaryreport", { data_type => "INT", default_value => undef, is_nullable => 1, size => 11, },
22 "owner", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
23 );
24
25115µs165µs__PACKAGE__->set_primary_key(qw/testrun_id report_id/);
26
2719µs1298µs__PACKAGE__->might_have ( reportgrouptestrunstats => 'Tapper::Schema::ReportsDB::Result::ReportgroupTestrunStats', { 'foreign.testrun_id' => 'self.testrun_id' }, { is_foreign_key_constraint => 0 } );
# spent 298µs making 1 call to DBIx::Class::Relationship::HasOne::might_have
2819µs1141µs__PACKAGE__->belongs_to ( report => 'Tapper::Schema::ReportsDB::Result::Report', { 'foreign.id' => 'self.report_id' } );
# spent 141µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to
29
30# -------------------- methods on results --------------------
31
32
33sub groupreports {
34 my ($self) = @_;
35
36 my @report_ids;
37 my $rg = $self->result_source->schema->resultset('ReportgroupTestrun')->search({ testrun_id => $self->testrun_id });
38 while (my $rg_entry = $rg->next) {
39 push @report_ids, $rg_entry->report_id;
40 }
41 return $self->result_source->schema->resultset('Report')->search({ id => [ -or => [ @report_ids ] ] });
42}
43
44117µs1;
45
46__END__