← Index
NYTProf Performance Profile   « line view »
For script/ponapi
  Run on Wed Feb 10 15:51:26 2016
Reported on Thu Feb 11 09:43:08 2016

Filename/usr/local/share/perl/5.18.2/App/Cmd/ArgProcessor.pm
StatementsExecuted 18 statements in 695µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
2222.67ms20.0msApp::Cmd::ArgProcessor::::_process_argsApp::Cmd::ArgProcessor::_process_args
11119µs31µsApp::Cmd::::BEGIN@1 App::Cmd::BEGIN@1
1115µs8µsApp::Cmd::::BEGIN@2 App::Cmd::BEGIN@2
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1218µs244µs
# spent 31µs (19+13) within App::Cmd::BEGIN@1 which was called: # once (19µs+13µs) by App::Cmd::BEGIN@7 at line 1
use strict;
# spent 31µs making 1 call to App::Cmd::BEGIN@1 # spent 13µs making 1 call to strict::import
2290µs211µs
# spent 8µs (5+3) within App::Cmd::BEGIN@2 which was called: # once (5µs+3µs) by App::Cmd::BEGIN@7 at line 2
use warnings;
# spent 8µs making 1 call to App::Cmd::BEGIN@2 # spent 3µs making 1 call to warnings::import
3
4package App::Cmd::ArgProcessor;
51400ns$App::Cmd::ArgProcessor::VERSION = '0.330';
6# ABSTRACT: App::Cmd-specific wrapper for Getopt::Long::Descriptive
7
8
# spent 20.0ms (2.67+17.3) within App::Cmd::ArgProcessor::_process_args which was called 2 times, avg 10.0ms/call: # once (2.66ms+16.7ms) by App::Cmd::get_command at line 626 of App/Cmd.pm # once (17µs+641µs) by App::Cmd::Command::prepare at line 30 of App/Cmd/Command.pm
sub _process_args {
922µs my ($class, $args, @params) = @_;
1023µs local @ARGV = @$args;
11
122535µs require Getopt::Long::Descriptive;
13229µs217µs Getopt::Long::Descriptive->VERSION(0.084);
# spent 17µs making 2 calls to UNIVERSAL::VERSION, avg 8µs/call
14
1525µs21.14ms my ($opt, $usage) = Getopt::Long::Descriptive::describe_options(@params);
# spent 1.14ms making 2 calls to Getopt::Long::Descriptive::describe_options, avg 570µs/call
16
17 return (
18211µs $opt,
19 [ @ARGV ], # whatever remained
20 usage => $usage,
21 );
22}
23
2412µs1;
25
26__END__