← 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:08 2012

Filename/2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/Tapper/Schema/TestrunDB/Result/ScenarioElement.pm
StatementsExecuted 27 statements in 440µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11148µs103µsTapper::Schema::TestrunDB::Result::ScenarioElement::::BEGIN@9Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@9
11113µs55µsTapper::Schema::TestrunDB::Result::ScenarioElement::::BEGIN@9.20Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@9.20
11111µs11µsTapper::Schema::TestrunDB::Result::ScenarioElement::::BEGIN@2Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@2
11110µs14µsTapper::Schema::TestrunDB::Result::ScenarioElement::::BEGIN@10Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@10
1119µs25µsTapper::Schema::TestrunDB::Result::ScenarioElement::::BEGIN@11Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@11
1118µs43µsTapper::Schema::TestrunDB::Result::ScenarioElement::::BEGIN@13Tapper::Schema::TestrunDB::Result::ScenarioElement::BEGIN@13
1118µs8µsTapper::Schema::TestrunDB::Result::ScenarioElement::::CORE:substTapper::Schema::TestrunDB::Result::ScenarioElement::CORE:subst (opcode)
0000s0sTapper::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
1package 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 {
315µs $Tapper::Schema::TestrunDB::Result::ScenarioElement::AUTHORITY = 'cpan:AMD';
4131µs111µs}
5{
62900ns $Tapper::Schema::TestrunDB::Result::ScenarioElement::VERSION = '0.001';
7}
8
9669µs3200µ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
10319µs218µ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
11320µs241µ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
133178µs278µ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
15110µs1337µs__PACKAGE__->load_components("InflateColumn::Object::Enum", "Core");
# spent 337µs making 1 call to Class::C3::Componentised::load_components
16114µs1437µs__PACKAGE__->table("scenario_element");
# spent 437µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table
17124µs1635µ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
25116µs156µs__PACKAGE__->set_primary_key(qw/id/);
26
27113µs18µs(my $basepkg = __PACKAGE__) =~ s/::\w+$//;
28
29110µs1247µ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
3013µs1136µ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
3119µs1104µ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
34sub peers_need_fitting
35{
36 my ($self) = @_;
37 return $self->peer_elements->search({is_fitted => { '!=' => 1,}})->count;
38}
39
40121µs1;
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