Profile of HTTP/Headers/ActionPack/Core/Base.pm

← 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/HTTP/Headers/ActionPack/Core/Base.pm
Statements | Executed 1300023 statements in 4.68s

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
200002 | 2 | 2 | 4.36s | 8.88s | HTTP::Headers::ActionPack::Core::Base::::newHTTP::Headers::ActionPack::Core::Base::new
200002 | 1 | 1 | 618ms | 618ms | HTTP::Headers::ActionPack::Core::Base::::CREATEHTTP::Headers::ActionPack::Core::Base::CREATE
100001 | 1 | 1 | 150ms | 150ms | HTTP::Headers::ActionPack::Core::Base::::BUILDHTTP::Headers::ActionPack::Core::Base::BUILD
1 | 1 | 1 | 9µs | 17µs | HTTP::Headers::ActionPack::Core::Base::::BEGIN@10HTTP::Headers::ActionPack::Core::Base::BEGIN@10
1 | 1 | 1 | 7µs | 7µs | HTTP::Headers::ActionPack::Core::Base::::BEGIN@2HTTP::Headers::ActionPack::Core::Base::BEGIN@2
1 | 1 | 1 | 7µs | 30µs | HTTP::Headers::ActionPack::Core::Base::::BEGIN@13HTTP::Headers::ActionPack::Core::Base::BEGIN@13
1 | 1 | 1 | 6µs | 9µs | HTTP::Headers::ActionPack::Core::Base::::BEGIN@11HTTP::Headers::ActionPack::Core::Base::BEGIN@11
0 | 0 | 0 | 0s | 0s | HTTP::Headers::ActionPack::Core::Base::::BUILDARGSHTTP::Headers::ActionPack::Core::Base::BUILDARGS
0 | 0 | 0 | 0s | 0s | HTTP::Headers::ActionPack::Core::Base::::as_stringHTTP::Headers::ActionPack::Core::Base::as_string

Call graph for these subroutines as a Graphviz dot language file.

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | package HTTP::Headers::ActionPack::Core::Base;
2 |  |  |  |  | # spent 7µs within HTTP::Headers::ActionPack::Core::Base::BEGIN@2 which was called: # once (7µs+0s) by parent::import at line 4 BEGIN {
3 | 1 | 4µs |  |  | $HTTP::Headers::ActionPack::Core::Base::AUTHORITY = 'cpan:STEVAN';
4 | 1 | 32µs | 1 | 7µs | } # spent 7µs making 1 call to HTTP::Headers::ActionPack::Core::Base::BEGIN@2
5 |  |  |  |  | {
6 | 2 | 900ns |  |  | $HTTP::Headers::ActionPack::Core::Base::VERSION = '0.09';
7 |  |  |  |  | }
8 |  |  |  |  | # ABSTRACT: A Base class
9 |  |  |  |  |
10 | 2 | 19µs | 2 | 26µs | # spent 17µs (9+8) within HTTP::Headers::ActionPack::Core::Base::BEGIN@10 which was called: # once (9µs+8µs) by parent::import at line 10 use strict; # spent 17µs making 1 call to HTTP::Headers::ActionPack::Core::Base::BEGIN@10 # spent 8µs making 1 call to strict::import
11 | 2 | 22µs | 2 | 12µs | # spent 9µs (6+3) within HTTP::Headers::ActionPack::Core::Base::BEGIN@11 which was called: # once (6µs+3µs) by parent::import at line 11 use warnings; # spent 9µs making 1 call to HTTP::Headers::ActionPack::Core::Base::BEGIN@11 # spent 3µs making 1 call to warnings::import
12 |  |  |  |  |
13 | 2 | 126µs | 2 | 54µs | # spent 30µs (7+24) within HTTP::Headers::ActionPack::Core::Base::BEGIN@13 which was called: # once (7µs+24µs) by parent::import at line 13 use overload '""' => 'as_string', fallback => 1; # spent 30µs making 1 call to HTTP::Headers::ActionPack::Core::Base::BEGIN@13 # spent 24µs making 1 call to overload::import
14 |  |  |  |  |
15 |  |  |  |  | # spent 8.88s (4.36+4.53) within HTTP::Headers::ActionPack::Core::Base::new which was called 200002 times, avg 44µs/call: # 100001 times (1.89s+3.15s) by HTTP::Headers::ActionPack::MediaTypeList::add_header_value at line 34 of HTTP/Headers/ActionPack/MediaTypeList.pm, avg 50µs/call # 100001 times (2.47s+1.37s) by HTTP::Headers::ActionPack::PriorityList::new_from_string at line 34 of HTTP/Headers/ActionPack/PriorityList.pm, avg 38µs/call sub new {
16 | 200002 | 93.0ms |  |  | my $class = shift;
17 | 200002 | 1.30s | 400004 | 3.95s | my $self = $class->CREATE( $class->BUILDARGS( @_ ) ); # spent 2.76s making 100001 calls to HTTP::Headers::ActionPack::Core::BaseHeaderType::BUILDARGS, avg 28µs/call # spent 618ms making 200002 calls to HTTP::Headers::ActionPack::Core::Base::CREATE, avg 3µs/call # spent 568ms making 100001 calls to HTTP::Headers::ActionPack::PriorityList::BUILDARGS, avg 6µs/call
18 | 200002 | 532ms | 200002 | 579ms | $self->BUILD( @_ ); # spent 429ms making 100001 calls to HTTP::Headers::ActionPack::MediaTypeList::BUILD, avg 4µs/call # spent 150ms making 100001 calls to HTTP::Headers::ActionPack::Core::Base::BUILD, avg 1µs/call
19 | 200002 | 1.03s |  |  | $self;
20 |  |  |  |  | }
21 |  |  |  |  |
22 |  |  |  |  | sub BUILDARGS { +{ ref $_[0] eq 'HASH' ? %{ $_[0] } : @_ } }
23 |  |  |  |  |
24 |  |  |  |  | # spent 618ms within HTTP::Headers::ActionPack::Core::Base::CREATE which was called 200002 times, avg 3µs/call: # 200002 times (618ms+0s) by HTTP::Headers::ActionPack::Core::Base::new at line 17, avg 3µs/call sub CREATE {
25 | 200002 | 117ms |  |  | my ($class, $instance) = @_;
26 | 200002 | 1.22s |  |  | bless $instance => $class;
27 |  |  |  |  | }
28 |  |  |  |  |
29 | 100001 | 390ms |  |  | # spent 150ms within HTTP::Headers::ActionPack::Core::Base::BUILD which was called 100001 times, avg 1µs/call: # 100001 times (150ms+0s) by HTTP::Headers::ActionPack::Core::Base::new at line 18, avg 1µs/call sub BUILD {}
30 |  |  |  |  |
31 |  |  |  |  | sub as_string {
32 |  |  |  |  | my $self = shift;
33 |  |  |  |  | "$self"
34 |  |  |  |  | }
35 |  |  |  |  |
36 | 1 | 2µs |  |  | 1;
37 |  |  |  |  |
38 |  |  |  |  | __END__