Profile of Tapper/Schema/ReportsDB/Result/View010TestrunOverviewReports.pm

← 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/View010TestrunOverviewReports.pm
Statements | Executed 24 statements in 325µs

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 49µs | 103µs | Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::::BEGIN@10Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@10
1 | 1 | 1 | 12µs | 12µs | Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::::BEGIN@2Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@2
1 | 1 | 1 | 10µs | 54µs | Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::::BEGIN@10.28Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@10.28
1 | 1 | 1 | 9µs | 13µs | Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::::BEGIN@11Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@11
1 | 1 | 1 | 9µs | 24µs | Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::::BEGIN@12Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@12
1 | 1 | 1 | 8µs | 70µs | Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::::BEGIN@14Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@14

Call graph for these subroutines as a Graphviz dot language file.

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | package Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports;
2 |  |  |  |  | # spent 12µs within Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@2 which was called: # once (12µs+0s) by Class::C3::Componentised::ensure_class_loaded at line 4 BEGIN {
3 | 1 | 9µs |  |  | $Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::AUTHORITY = 'cpan:AMD';
4 | 1 | 30µs | 1 | 12µs | } # spent 12µs making 1 call to Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@2
5 |  |  |  |  | {
6 | 2 | 800ns |  |  | $Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::VERSION = '0.001';
7 |  |  |  |  | }
8 |  |  |  |  | # the number is to sort classes on deploy
9 |  |  |  |  |
10 | 6 | 70µs | 3 | 201µs | # spent 103µs (49+54) within Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@10 which was called: # once (49µs+54µs) by Class::C3::Componentised::ensure_class_loaded at line 10 # spent 54µs (10+44) within Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@10.28 which was called: # once (10µs+44µs) by Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@10 at line 10 use 5.010; # spent 103µs making 1 call to Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@10 # spent 54µs making 1 call to Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@10.28 # spent 44µs making 1 call to feature::import
11 | 3 | 18µs | 2 | 17µs | # spent 13µs (9+4) within Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@11 which was called: # once (9µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 11 use strict; # spent 13µs making 1 call to Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@11 # spent 4µs making 1 call to strict::import
12 | 3 | 21µs | 2 | 39µs | # spent 24µs (9+15) within Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@12 which was called: # once (9µs+15µs) by Class::C3::Componentised::ensure_class_loaded at line 12 use warnings; # spent 24µs making 1 call to Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@12 # spent 15µs making 1 call to warnings::import
13 |  |  |  |  |
14 | 3 | 84µs | 2 | 131µs | # spent 70µs (8+61) within Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@14 which was called: # once (8µs+61µs) by Class::C3::Componentised::ensure_class_loaded at line 14 use parent 'DBIx::Class::Core'; # spent 70µs making 1 call to Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::BEGIN@14 # spent 61µs making 1 call to parent::import
15 |  |  |  |  |
16 | 1 | 28µs | 1 | 28µs | __PACKAGE__->table_class('DBIx::Class::ResultSource::View'); # spent 28µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table_class
17 |  |  |  |  |
18 | 1 | 17µs | 1 | 1.34ms | __PACKAGE__->table('view_testrun_overview_reports'); # spent 1.34ms making 1 call to DBIx::Class::ResultSourceProxy::Table::table
19 |  |  |  |  |
20 |  |  |  |  | # virtual is needed when the query should accept parameters
21 | 1 | 3µs | 2 | 114µs | __PACKAGE__->result_source_instance->is_virtual(0); # spent 103µs making 1 call to DBIx::Class::ResultSource::View::is_virtual # spent 11µs making 1 call to Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::result_source_instance
22 | 1 | 3µs | 2 | 102µs | __PACKAGE__->result_source_instance->view_definition # spent 91µs making 1 call to DBIx::Class::ResultSource::View::view_definition # spent 11µs making 1 call to Tapper::Schema::ReportsDB::Result::View010TestrunOverviewReports::result_source_instance
23 |  |  |  |  | (
24 |  |  |  |  | "select rgts.testrun_id as rgt_testrun_id, ".
25 |  |  |  |  | " max(rgt.report_id) as primary_report_id, ".
26 |  |  |  |  | " rgts.success_ratio as rgts_success_ratio ".
27 |  |  |  |  | "from reportgrouptestrun rgt, reportgrouptestrunstats rgts ".
28 |  |  |  |  | "where rgt.testrun_id=rgts.testrun_id ".
29 |  |  |  |  | "group by rgt.testrun_id"
30 |  |  |  |  | );
31 |  |  |  |  |
32 | 1 | 25µs | 1 | 936µs | __PACKAGE__->add_columns # spent 936µs making 1 call to DBIx::Class::ResultSourceProxy::add_columns
33 |  |  |  |  | (
34 |  |  |  |  | 'rgt_testrun_id' => { data_type => 'INT', is_auto_increment => 1 },
35 |  |  |  |  | 'rgts_success_ratio' => { data_type => 'varchar', size => 20 },
36 |  |  |  |  | 'primary_report_id' => { data_type => 'INT' },
37 |  |  |  |  | );
38 |  |  |  |  |
39 | 1 | 16µs |  |  | 1;
40 |  |  |  |  |
41 |  |  |  |  | __END__