← 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:12 2016

Filename/usr/local/share/perl/5.18.2/Plack/HTTPParser.pm
StatementsExecuted 12 statements in 200µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1118µs17µsPlack::HTTPParser::::BEGIN@2Plack::HTTPParser::BEGIN@2
1118µs40µsPlack::HTTPParser::::BEGIN@7Plack::HTTPParser::BEGIN@7
1116µs23µsPlack::HTTPParser::::BEGIN@3Plack::HTTPParser::BEGIN@3
0000s0sPlack::HTTPParser::::__ANON__[:10]Plack::HTTPParser::__ANON__[:10]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Plack::HTTPParser;
2226µs226µs
# spent 17µs (8+9) within Plack::HTTPParser::BEGIN@2 which was called: # once (8µs+9µs) by HTTP::Server::PSGI::BEGIN@7 at line 2
use strict;
# spent 17µs making 1 call to Plack::HTTPParser::BEGIN@2 # spent 9µs making 1 call to strict::import
3229µs223µs
# spent 23µs (6+17) within Plack::HTTPParser::BEGIN@3 which was called: # once (6µs+17µs) by HTTP::Server::PSGI::BEGIN@7 at line 3
use parent qw(Exporter);
# spent 23µs making 1 call to Plack::HTTPParser::BEGIN@3 # spent 17µs making 1 call to parent::import, recursion: max depth 2, sum of overlapping time 17µs
4
51800nsour @EXPORT = qw( parse_http_request );
6
7274µs272µs
# spent 40µs (8+32) within Plack::HTTPParser::BEGIN@7 which was called: # once (8µs+32µs) by HTTP::Server::PSGI::BEGIN@7 at line 7
use Try::Tiny;
# spent 40µs making 1 call to Plack::HTTPParser::BEGIN@7 # spent 32µs making 1 call to Exporter::import
8
9{
10467µs10s if (!$ENV{PLACK_HTTP_PARSER_PP} && try { require HTTP::Parser::XS; 1 }) {
# spent 634µs making 1 call to Try::Tiny::try, recursion: max depth 2, sum of overlapping time 634µs
11 *parse_http_request = \&HTTP::Parser::XS::parse_http_request;
12 } else {
13 require Plack::HTTPParser::PP;
14 *parse_http_request = \&Plack::HTTPParser::PP::parse_http_request;
15 }
16}
17
1814µs1;
19
20__END__