| Filename | /2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/Tapper/Schema/ReportsDB/Result/ReportgroupTestrun.pm |
| Statements | Executed 25 statements in 449µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 54µs | 109µs | Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@9 |
| 1 | 1 | 1 | 12µs | 12µs | Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@2 |
| 1 | 1 | 1 | 12µs | 55µs | Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@9.27 |
| 1 | 1 | 1 | 10µs | 14µs | Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@10 |
| 1 | 1 | 1 | 9µs | 27µs | Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@11 |
| 1 | 1 | 1 | 9µs | 48µs | Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@13 |
| 0 | 0 | 0 | 0s | 0s | Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::groupreports |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package 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 | ||||
| 3 | 1 | 5µs | $Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::AUTHORITY = 'cpan:AMD'; | ||
| 4 | 1 | 30µs | 1 | 12µs | } # spent 12µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@2 |
| 5 | { | ||||
| 6 | 2 | 1µs | $Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::VERSION = '0.001'; | ||
| 7 | } | ||||
| 8 | |||||
| 9 | 6 | 78µs | 3 | 207µ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 # 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 |
| 10 | 3 | 21µs | 2 | 18µ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 # spent 14µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@10
# spent 4µs making 1 call to strict::import |
| 11 | 3 | 20µs | 2 | 44µ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 # spent 27µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@11
# spent 17µs making 1 call to warnings::import |
| 12 | |||||
| 13 | 3 | 189µs | 2 | 88µ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 # spent 48µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportgroupTestrun::BEGIN@13
# spent 39µs making 1 call to parent::import |
| 14 | |||||
| 15 | 1 | 11µs | 1 | 237µs | __PACKAGE__->load_components("Core"); # spent 237µs making 1 call to Class::C3::Componentised::load_components |
| 16 | 1 | 21µs | 1 | 442µs | __PACKAGE__->table("reportgrouptestrun"); # spent 442µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 17 | 1 | 24µs | 1 | 575µ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 | |||||
| 25 | 1 | 15µs | 1 | 65µs | __PACKAGE__->set_primary_key(qw/testrun_id report_id/); # spent 65µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 26 | |||||
| 27 | 1 | 9µs | 1 | 298µ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 |
| 28 | 1 | 9µs | 1 | 141µ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 | |||||
| 33 | sub 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 | |||||
| 44 | 1 | 17µs | 1; | ||
| 45 | |||||
| 46 | __END__ |