Profile of Tapper/Schema/ReportsDB/Result/View020TestrunOverview.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:23:14 2012

Filename | /2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/Tapper/Schema/ReportsDB/Result/View020TestrunOverview.pm
Statements | Executed 24 statements in 360µs

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 52µs | 121µs | Tapper::Schema::ReportsDB::Result::View020TestrunOverview::::BEGIN@10Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@10
1 | 1 | 1 | 12µs | 12µs | Tapper::Schema::ReportsDB::Result::View020TestrunOverview::::BEGIN@2Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@2
1 | 1 | 1 | 10µs | 69µs | Tapper::Schema::ReportsDB::Result::View020TestrunOverview::::BEGIN@10.30Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@10.30
1 | 1 | 1 | 10µs | 68µs | Tapper::Schema::ReportsDB::Result::View020TestrunOverview::::BEGIN@14Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@14
1 | 1 | 1 | 9µs | 14µs | Tapper::Schema::ReportsDB::Result::View020TestrunOverview::::BEGIN@11Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@11
1 | 1 | 1 | 9µs | 26µs | Tapper::Schema::ReportsDB::Result::View020TestrunOverview::::BEGIN@12Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@12

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::View020TestrunOverview;
2 |  |  |  |  | # spent 12µs within Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@2 which was called: # once (12µs+0s) by Class::C3::Componentised::ensure_class_loaded at line 4 BEGIN {
3 | 1 | 4µs |  |  | $Tapper::Schema::ReportsDB::Result::View020TestrunOverview::AUTHORITY = 'cpan:AMD';
4 | 1 | 30µs | 1 | 12µs | } # spent 12µs making 1 call to Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@2
5 |  |  |  |  | {
6 | 2 | 1µs |  |  | $Tapper::Schema::ReportsDB::Result::View020TestrunOverview::VERSION = '0.001';
7 |  |  |  |  | }
8 |  |  |  |  | # the number is to sort classes on deploy
9 |  |  |  |  |
10 | 6 | 74µs | 3 | 250µs | # spent 121µs (52+69) within Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@10 which was called: # once (52µs+69µs) by Class::C3::Componentised::ensure_class_loaded at line 10 # spent 69µs (10+59) within Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@10.30 which was called: # once (10µs+59µs) by Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@10 at line 10 use 5.010; # spent 121µs making 1 call to Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@10 # spent 69µs making 1 call to Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@10.30 # spent 59µs making 1 call to feature::import
11 | 3 | 20µs | 2 | 18µs | # spent 14µs (9+4) within Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@11 which was called: # once (9µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 11 use strict; # spent 14µs making 1 call to Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@11 # spent 4µs making 1 call to strict::import
12 | 3 | 23µs | 2 | 43µs | # spent 26µs (9+17) within Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@12 which was called: # once (9µs+17µs) by Class::C3::Componentised::ensure_class_loaded at line 12 use warnings; # spent 26µs making 1 call to Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@12 # spent 17µs making 1 call to warnings::import
13 |  |  |  |  |
14 | 3 | 111µs | 2 | 126µs | # spent 68µs (10+58) within Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@14 which was called: # once (10µs+58µs) by Class::C3::Componentised::ensure_class_loaded at line 14 use parent 'DBIx::Class::Core'; # spent 68µs making 1 call to Tapper::Schema::ReportsDB::Result::View020TestrunOverview::BEGIN@14 # spent 58µ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 | 18µs | 1 | 340µs | __PACKAGE__->table('view_testrun_overview'); # spent 340µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table
19 |  |  |  |  |
20 |  |  |  |  | # virtual is needed when the query should accept parameters
21 | 1 | 6µs | 2 | 11µs | __PACKAGE__->result_source_instance->is_virtual(0); # spent 10µs making 1 call to Tapper::Schema::ReportsDB::Result::View020TestrunOverview::result_source_instance # spent 1µs making 1 call to DBIx::Class::ResultSource::View::is_virtual
22 | 1 | 5µs | 2 | 10µs | __PACKAGE__->result_source_instance->view_definition # spent 9µs making 1 call to Tapper::Schema::ReportsDB::Result::View020TestrunOverview::result_source_instance # spent 1µs making 1 call to DBIx::Class::ResultSource::View::view_definition
23 |  |  |  |  | (
24 |  |  |  |  | "select vtor.*, ".
25 |  |  |  |  | " r.machine_name, ".
26 |  |  |  |  | " r.created_at, ".
27 |  |  |  |  | " r.suite_id, ".
28 |  |  |  |  | " s.name as suite_name ".
29 |  |  |  |  | "from view_testrun_overview_reports vtor, ".
30 |  |  |  |  | " report r, ".
31 |  |  |  |  | " suite s ".
32 |  |  |  |  | "where vtor.primary_report_id=r.id and ".
33 |  |  |  |  | " r.suite_id=s.id"
34 |  |  |  |  | );
35 |  |  |  |  |
36 | 1 | 28µs | 1 | 1.14ms | __PACKAGE__->add_columns # spent 1.14ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns
37 |  |  |  |  | (
38 |  |  |  |  | # view_testrun_overview_reports
39 |  |  |  |  | 'rgt_testrun_id' => { data_type => 'INT', size => 11 },
40 |  |  |  |  | 'rgts_success_ratio' => { data_type => 'varchar', size => 20 },
41 |  |  |  |  | 'primary_report_id' => { data_type => 'INT', size => 11 },
42 |  |  |  |  | # report
43 |  |  |  |  | 'machine_name' => { data_type => 'varchar', size => 50 },
44 |  |  |  |  | 'created_at' => { data_type => 'DATETIME' },
45 |  |  |  |  | 'suite_id' => { data_type => 'varchar', size => 11 },
46 |  |  |  |  | # suite
47 |  |  |  |  | 'suite_name' => { data_type => 'varchar', size => 255 },
48 |  |  |  |  | );
49 |  |  |  |  |
50 | 1 | 12µs |  |  | 1;
51 |  |  |  |  |
52 |  |  |  |  | __END__