| Filename | /Users/ap13/pathogens/Roary/lib/Bio/Roary/CommandLine/Common.pm |
| Statements | Executed 8 statements in 408µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 787µs | 1.24ms | Bio::Roary::CommandLine::Common::BEGIN@13 |
| 1 | 1 | 1 | 33µs | 4.74ms | Bio::Roary::CommandLine::Common::BEGIN@12 |
| 1 | 1 | 1 | 10µs | 113µs | Bio::Roary::CommandLine::Common::BEGIN@38 |
| 0 | 0 | 0 | 0s | 0s | Bio::Roary::CommandLine::Common::__ANON__[lib/Bio/Roary/CommandLine/Common.pm:36] |
| 0 | 0 | 0 | 0s | 0s | Bio::Roary::CommandLine::Common::usage_text |
| 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 | 48µs | 2 | 9.44ms | # spent 4.74ms (33µs+4.70) within Bio::Roary::CommandLine::Common::BEGIN@12 which was called:
# once (33µs+4.70ms) by Module::Runtime::require_module at line 12 # spent 4.74ms making 1 call to Bio::Roary::CommandLine::Common::BEGIN@12
# spent 4.70ms making 1 call to Moose::import |
| 13 | 2 | 314µs | 2 | 1.25ms | # spent 1.24ms (787µs+449µs) within Bio::Roary::CommandLine::Common::BEGIN@13 which was called:
# once (787µs+449µs) by Module::Runtime::require_module at line 13 # spent 1.24ms making 1 call to Bio::Roary::CommandLine::Common::BEGIN@13
# spent 16µ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 | 543µs | }; # spent 543µs making 1 call to Moose::before |
| 37 | |||||
| 38 | 2 | 35µs | 2 | 215µs | # spent 113µs (10+103) within Bio::Roary::CommandLine::Common::BEGIN@38 which was called:
# once (10µs+103µs) by Module::Runtime::require_module at line 38 # spent 113µs making 1 call to Bio::Roary::CommandLine::Common::BEGIN@38
# spent 103µs making 1 call to Moose::unimport |
| 39 | 1 | 7µs | 1; |