← 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/ResultSet/Queue.pm
StatementsExecuted 2194 statements in 5.93ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
181227.42ms357msTapper::Schema::TestrunDB::ResultSet::Queue::::official_queuelistTapper::Schema::TestrunDB::ResultSet::Queue::official_queuelist
11138µs75µsTapper::Schema::TestrunDB::ResultSet::Queue::::BEGIN@9Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@9
11111µs11µsTapper::Schema::TestrunDB::ResultSet::Queue::::BEGIN@2Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@2
11111µs37µsTapper::Schema::TestrunDB::ResultSet::Queue::::BEGIN@9.24Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@9.24
1119µs44µsTapper::Schema::TestrunDB::ResultSet::Queue::::BEGIN@14Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@14
1117µs29µsTapper::Schema::TestrunDB::ResultSet::Queue::::BEGIN@13Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@13
1117µs17µsTapper::Schema::TestrunDB::ResultSet::Queue::::BEGIN@11Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@11
1117µs9µsTapper::Schema::TestrunDB::ResultSet::Queue::::BEGIN@10Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@10
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::ResultSet::Queue;
2
# spent 11µs within Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@2 which was called: # once (11µs+0s) by Class::C3::Componentised::ensure_class_loaded at line 4
BEGIN {
314µs $Tapper::Schema::TestrunDB::ResultSet::Queue::AUTHORITY = 'cpan:AMD';
4122µs111µs}
5{
62800ns $Tapper::Schema::TestrunDB::ResultSet::Queue::VERSION = '0.001';
7}
8
9657µs3137µs
# spent 75µs (38+37) within Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@9 which was called: # once (38µs+37µs) by Class::C3::Componentised::ensure_class_loaded at line 9 # spent 37µs (11+26) within Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@9.24 which was called: # once (11µs+26µs) by Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@9 at line 9
use 5.010;
# spent 75µs making 1 call to Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@9 # spent 37µs making 1 call to Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@9.24 # spent 26µs making 1 call to feature::import
10318µs212µs
# spent 9µs (7+3) within Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@10 which was called: # once (7µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 10
use strict;
# spent 9µs making 1 call to Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@10 # spent 2µs making 1 call to strict::import
11319µs226µs
# spent 17µs (7+10) within Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@11 which was called: # once (7µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 11
use warnings;
# spent 17µs making 1 call to Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@11 # spent 10µs making 1 call to warnings::import
12
13318µs251µs
# spent 29µs (7+22) within Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@13 which was called: # once (7µs+22µs) by Class::C3::Componentised::ensure_class_loaded at line 13
use parent 'DBIx::Class::ResultSet';
# spent 29µs making 1 call to Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@13 # spent 22µs making 1 call to parent::import
14382µs280µs
# spent 44µs (9+36) within Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@14 which was called: # once (9µs+36µs) by Class::C3::Componentised::ensure_class_loaded at line 14
use Data::Dumper;
# spent 44µs making 1 call to Tapper::Schema::TestrunDB::ResultSet::Queue::BEGIN@14 # spent 36µs making 1 call to Exporter::import
15
16
17
# spent 357ms (7.42+350) within Tapper::Schema::TestrunDB::ResultSet::Queue::official_queuelist which was called 181 times, avg 1.97ms/call: # 180 times (7.36ms+348ms) by Tapper::MCP::Scheduler::Controller::get_next_job at line 82 of lib/Tapper/MCP/Scheduler/Controller.pm, avg 1.97ms/call # once (51µs+2.23ms) by Tapper::MCP::Scheduler::Algorithm::__ANON__[lib/Tapper/MCP/Scheduler/Algorithm.pm:12] at line 12 of lib/Tapper/MCP/Scheduler/Algorithm.pm
sub official_queuelist {
1821725.71ms my ($self) = @_;
19
20 my %queues;
21905341ms while (my $q = $self->next) {
# spent 341ms making 905 calls to DBIx::Class::ResultSet::next, avg 377µs/call
227244.76ms next if not $q->active;
# spent 4.76ms making 724 calls to Tapper::Schema::TestrunDB::Result::Queue::active, avg 7µs/call
237243.85ms $queues{$q->name} = $q;
# spent 3.85ms making 724 calls to Tapper::Schema::TestrunDB::Result::Queue::name, avg 5µs/call
24 }
25 return \%queues;
26}
27
2812µs1;
29
30__END__