Filename | /Users/ap13/pathogens/Roary/lib/Bio/Roary/CommandLine/Common.pm |
Statements | Executed 8 statements in 428µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 758µs | 1.18ms | BEGIN@13 | Bio::Roary::CommandLine::Common::
1 | 1 | 1 | 34µs | 4.00ms | BEGIN@12 | Bio::Roary::CommandLine::Common::
1 | 1 | 1 | 13µs | 150µs | BEGIN@38 | Bio::Roary::CommandLine::Common::
0 | 0 | 0 | 0s | 0s | __ANON__[lib/Bio/Roary/CommandLine/Common.pm:36] | Bio::Roary::CommandLine::Common::
0 | 0 | 0 | 0s | 0s | usage_text | Bio::Roary::CommandLine::Common::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Bio::Roary::CommandLine::Common; | ||||
2 | # ABSTRACT: Common command line settings | ||||
3 | |||||
4 | =head1 SYNOPSIS | ||||
5 | |||||
6 | Common command line settings | ||||
7 | |||||
8 | extends 'Bio::Roary::CommandLine::Common'; | ||||
9 | |||||
10 | =cut | ||||
11 | |||||
12 | 2 | 40µs | 2 | 7.96ms | # spent 4.00ms (34µs+3.96) within Bio::Roary::CommandLine::Common::BEGIN@12 which was called:
# once (34µs+3.96ms) by Module::Runtime::require_module at line 12 # spent 4.00ms making 1 call to Bio::Roary::CommandLine::Common::BEGIN@12
# spent 3.96ms making 1 call to Moose::import |
13 | 2 | 343µs | 2 | 1.20ms | # spent 1.18ms (758µs+424µs) within Bio::Roary::CommandLine::Common::BEGIN@13 which was called:
# once (758µs+424µs) by Module::Runtime::require_module at line 13 # spent 1.18ms making 1 call to Bio::Roary::CommandLine::Common::BEGIN@13
# spent 17µs making 1 call to Exporter::import |
14 | |||||
15 | |||||
16 | sub run { | ||||
17 | my ($self) = @_; | ||||
18 | } | ||||
19 | |||||
20 | sub usage_text { | ||||
21 | my ($self) = @_; | ||||
22 | return "Usage text"; | ||||
23 | } | ||||
24 | |||||
25 | # add our included binaries to the END of the PATH | ||||
26 | before 'run' => sub { | ||||
27 | my ($self) = @_; | ||||
28 | my $OPSYS = $^O; | ||||
29 | my $BINDIR = "$FindBin::RealBin/../binaries/$OPSYS"; | ||||
30 | |||||
31 | for my $dir ($BINDIR, "$BINDIR/../common", $FindBin::RealBin) { | ||||
32 | if (-d $dir) { | ||||
33 | $ENV{PATH} .= ":$dir"; | ||||
34 | } | ||||
35 | } | ||||
36 | 1 | 4µs | 1 | 568µs | }; # spent 568µs making 1 call to Moose::before |
37 | |||||
38 | 2 | 34µs | 2 | 287µs | # spent 150µs (13+137) within Bio::Roary::CommandLine::Common::BEGIN@38 which was called:
# once (13µs+137µs) by Module::Runtime::require_module at line 38 # spent 150µs making 1 call to Bio::Roary::CommandLine::Common::BEGIN@38
# spent 137µs making 1 call to Moose::unimport |
39 | 1 | 7µs | 1; |