← Index
NYTProf Performance Profile   « block view • line view • sub view »
For bin/pan_genome_post_analysis
  Run on Fri Mar 27 11:43:32 2015
Reported on Fri Mar 27 11:46:19 2015

Filename/Users/ap13/pathogens/Roary/lib/Bio/Roary/JobRunner/Role.pm
StatementsExecuted 9 statements in 176µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11134µs2.99msBio::Roary::JobRunner::Role::::BEGIN@12Bio::Roary::JobRunner::Role::BEGIN@12
0000s0sBio::Roary::JobRunner::Role::::_build__job_runner_classBio::Roary::JobRunner::Role::_build__job_runner_class
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Bio::Roary::JobRunner::Role;
2
3# ABSTRACT: A role to add job runner functionality
4
5=head1 SYNOPSIS
6
7A role to add job runner functionality
8 with 'Bio::Roary::JobRunner::Role';
9
10=cut
11
122151µs25.95ms
# spent 2.99ms (34µs+2.96) within Bio::Roary::JobRunner::Role::BEGIN@12 which was called: # once (34µs+2.96ms) by Module::Runtime::require_module at line 12
use Moose::Role;
# spent 2.99ms making 1 call to Bio::Roary::JobRunner::Role::BEGIN@12 # spent 2.96ms making 1 call to Moose::Role::import
13
1412µs1147µshas 'job_runner' => ( is => 'rw', isa => 'Str', default => 'Local' );
# spent 147µs making 1 call to Moose::Role::has
1512µs191µshas '_job_runner_class' => ( is => 'ro', isa => 'Str', lazy => 1, builder => '_build__job_runner_class' );
# spent 91µs making 1 call to Moose::Role::has
1611µs186µshas '_memory_required_in_mb' => ( is => 'rw', isa => 'Int', default => '200' );
# spent 86µs making 1 call to Moose::Role::has
1711µs184µshas '_queue' => ( is => 'rw', isa => 'Str', default => 'normal' );
# spent 84µs making 1 call to Moose::Role::has
1811µs184µshas 'dont_wait' => ( is => 'rw', isa => 'Bool', default => 0 );
# spent 84µs making 1 call to Moose::Role::has
1911µs183µshas 'cpus' => ( is => 'ro', isa => 'Int', default => 1 );
# spent 83µs making 1 call to Moose::Role::has
20
21sub _build__job_runner_class {
22 my ($self) = @_;
23 my $job_runner_class = "Bio::Roary::JobRunner::" . $self->job_runner;
24 eval "require $job_runner_class";
25 return $job_runner_class;
26}
27
28
29117µs1;