Profile of Tapper/Schema/TestrunDB/Result/ScenarioElement.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/TestrunDB/Result/ScenarioElement.pm
Statements | Executed 27 statements in 440µs

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 48µs | 103µs | Tapper::Schema::TestrunDB::Result::ScenarioElement::::BEGIN@9Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@9
1 | 1 | 1 | 13µs | 55µs | Tapper::Schema::TestrunDB::Result::ScenarioElement::::BEGIN@9.20Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@9.20
1 | 1 | 1 | 11µs | 11µs | Tapper::Schema::TestrunDB::Result::ScenarioElement::::BEGIN@2Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@2
1 | 1 | 1 | 10µs | 14µs | Tapper::Schema::TestrunDB::Result::ScenarioElement::::BEGIN@10Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@10
1 | 1 | 1 | 9µs | 25µs | Tapper::Schema::TestrunDB::Result::ScenarioElement::::BEGIN@11Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@11
1 | 1 | 1 | 8µs | 43µs | Tapper::Schema::TestrunDB::Result::ScenarioElement::::BEGIN@13Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@13
1 | 1 | 1 | 8µs | 8µs | Tapper::Schema::TestrunDB::Result::ScenarioElement::::CORE:substTapper::Schema::TestrunDB::Result::ScenarioElement::CORE:subst (opcode)
0 | 0 | 0 | 0s | 0s | Tapper::Schema::TestrunDB::Result::ScenarioElement::::peers_need_fittingTapper::Schema::TestrunDB::Result::ScenarioElement::peers_need_fitting

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::TestrunDB::Result::ScenarioElement;
2 |  |  |  |  | # spent 11µs within Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@2 which was called: # once (11µs+0s) by Class::C3::Componentised::ensure_class_loaded at line 4 BEGIN {
3 | 1 | 5µs |  |  | $Tapper::Schema::TestrunDB::Result::ScenarioElement::AUTHORITY = 'cpan:AMD';
4 | 1 | 31µs | 1 | 11µs | } # spent 11µs making 1 call to Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@2
5 |  |  |  |  | {
6 | 2 | 900ns |  |  | $Tapper::Schema::TestrunDB::Result::ScenarioElement::VERSION = '0.001';
7 |  |  |  |  | }
8 |  |  |  |  |
9 | 6 | 69µs | 3 | 200µs | # spent 103µs (48+55) within Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@9 which was called: # once (48µs+55µs) by Class::C3::Componentised::ensure_class_loaded at line 9 # spent 55µs (13+42) within Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@9.20 which was called: # once (13µs+42µs) by Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@9 at line 9 use 5.010; # spent 103µs making 1 call to Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@9 # spent 55µs making 1 call to Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@9.20 # spent 42µs making 1 call to feature::import
10 | 3 | 19µs | 2 | 18µs | # spent 14µs (10+4) within Tapper::Schema::TestrunDB::Result::ScenarioElement::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::TestrunDB::Result::ScenarioElement::BEGIN@10 # spent 4µs making 1 call to strict::import
11 | 3 | 20µs | 2 | 41µs | # spent 25µs (9+16) within Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@11 which was called: # once (9µs+16µs) by Class::C3::Componentised::ensure_class_loaded at line 11 use warnings; # spent 25µs making 1 call to Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@11 # spent 16µs making 1 call to warnings::import
12 |  |  |  |  |
13 | 3 | 178µs | 2 | 78µs | # spent 43µs (8+35) within Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@13 which was called: # once (8µs+35µs) by Class::C3::Componentised::ensure_class_loaded at line 13 use parent 'DBIx::Class'; # spent 43µs making 1 call to Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@13 # spent 35µs making 1 call to parent::import
14 |  |  |  |  |
15 | 1 | 10µs | 1 | 337µs | __PACKAGE__->load_components("InflateColumn::Object::Enum", "Core"); # spent 337µs making 1 call to Class::C3::Componentised::load_components
16 | 1 | 14µs | 1 | 437µs | __PACKAGE__->table("scenario_element"); # spent 437µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table
17 | 1 | 24µs | 1 | 635µs | __PACKAGE__->add_columns # spent 635µs making 1 call to DBIx::Class::ResultSourceProxy::add_columns
18 |  |  |  |  | (
19 |  |  |  |  | "id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, },
20 |  |  |  |  | "testrun_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, },
21 |  |  |  |  | "scenario_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, },
22 |  |  |  |  | "is_fitted", { data_type => "INT", default_value => 0, is_nullable => 0, size => 1, },
23 |  |  |  |  | );
24 |  |  |  |  |
25 | 1 | 16µs | 1 | 56µs | __PACKAGE__->set_primary_key(qw/id/); # spent 56µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key
26 |  |  |  |  |
27 | 1 | 13µs | 1 | 8µs | (my $basepkg = __PACKAGE__) =~ s/::\w+$//; # spent 8µs making 1 call to Tapper::Schema::TestrunDB::Result::ScenarioElement::CORE:subst
28 |  |  |  |  |
29 | 1 | 10µs | 1 | 247µs | __PACKAGE__->belongs_to( testrun => "${basepkg}::Testrun", { 'foreign.id' => 'self.testrun_id' }); # spent 247µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to
30 | 1 | 3µs | 1 | 136µs | __PACKAGE__->belongs_to( scenario => "${basepkg}::Scenario", { 'foreign.id' => 'self.scenario_id' }); # spent 136µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to
31 | 1 | 9µs | 1 | 104µs | __PACKAGE__->has_many ( peer_elements => "${basepkg}::ScenarioElement", { 'foreign.scenario_id' => 'self.scenario_id' }); # spent 104µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
32 |  |  |  |  |
33 |  |  |  |  |
34 |  |  |  |  | sub peers_need_fitting
35 |  |  |  |  | {
36 |  |  |  |  | my ($self) = @_;
37 |  |  |  |  | return $self->peer_elements->search({is_fitted => { '!=' => 1,}})->count;
38 |  |  |  |  | }
39 |  |  |  |  |
40 | 1 | 21µs |  |  | 1;
41 |  |  |  |  |
42 |  |  |  |  |
43 |  |  |  |  | __END__
|  |  |  |  | # spent 8µs within Tapper::Schema::TestrunDB::Result::ScenarioElement::CORE:subst which was called: # once (8µs+0s) by Class::C3::Componentised::ensure_class_loaded at line 27 sub Tapper::Schema::TestrunDB::Result::ScenarioElement::CORE:subst; # opcode