← Index
NYTProf Performance Profile   « line view »
For /usr/sbin/pkg_info
  Run on Mon Aug 7 09:39:31 2017
Reported on Mon Aug 7 09:40:21 2017

Filename/usr/libdata/perl5/amd64-openbsd/IO/Uncompress/Adapter/Inflate.pm
StatementsExecuted 2172 statements in 27.0ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
182116.00ms21.7msIO::Uncompress::Adapter::Inflate::::uncomprIO::Uncompress::Adapter::Inflate::uncompr
40115.39ms73.9msIO::Uncompress::Adapter::Inflate::::mkUncompObjectIO::Uncompress::Adapter::Inflate::mkUncompObject
4011388µs536µsIO::Uncompress::Adapter::Inflate::::resetIO::Uncompress::Adapter::Inflate::reset
11119µs23µsIO::Uncompress::Adapter::Inflate::::BEGIN@3IO::Uncompress::Adapter::Inflate::BEGIN@3
11118µs210µsIO::Uncompress::Adapter::Inflate::::BEGIN@8IO::Uncompress::Adapter::Inflate::BEGIN@8
11116µs187µsIO::Uncompress::Adapter::Inflate::::BEGIN@7IO::Uncompress::Adapter::Inflate::BEGIN@7
11111µs22µsIO::Uncompress::Adapter::Inflate::::BEGIN@4IO::Uncompress::Adapter::Inflate::BEGIN@4
0000s0sIO::Uncompress::Adapter::Inflate::::adler32IO::Uncompress::Adapter::Inflate::adler32
0000s0sIO::Uncompress::Adapter::Inflate::::compressedBytesIO::Uncompress::Adapter::Inflate::compressedBytes
0000s0sIO::Uncompress::Adapter::Inflate::::crc32IO::Uncompress::Adapter::Inflate::crc32
0000s0sIO::Uncompress::Adapter::Inflate::::createDeflateStreamIO::Uncompress::Adapter::Inflate::createDeflateStream
0000s0sIO::Uncompress::Adapter::Inflate::::getEndOffsetIO::Uncompress::Adapter::Inflate::getEndOffset
0000s0sIO::Uncompress::Adapter::Inflate::::getLastBlockOffsetIO::Uncompress::Adapter::Inflate::getLastBlockOffset
0000s0sIO::Uncompress::Adapter::Inflate::::resetLastBlockByteIO::Uncompress::Adapter::Inflate::resetLastBlockByte
0000s0sIO::Uncompress::Adapter::Inflate::::syncIO::Uncompress::Adapter::Inflate::sync
0000s0sIO::Uncompress::Adapter::Inflate::::uncompressedBytesIO::Uncompress::Adapter::Inflate::uncompressedBytes
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package IO::Uncompress::Adapter::Inflate;
2
3238µs226µs
# spent 23µs (19+4) within IO::Uncompress::Adapter::Inflate::BEGIN@3 which was called: # once (19µs+4µs) by IO::Uncompress::RawInflate::BEGIN@12 at line 3
use strict;
# spent 23µs making 1 call to IO::Uncompress::Adapter::Inflate::BEGIN@3 # spent 4µs making 1 call to strict::import
4234µs233µs
# spent 22µs (11+11) within IO::Uncompress::Adapter::Inflate::BEGIN@4 which was called: # once (11µs+11µs) by IO::Uncompress::RawInflate::BEGIN@12 at line 4
use warnings;
# spent 22µs making 1 call to IO::Uncompress::Adapter::Inflate::BEGIN@4 # spent 11µs making 1 call to warnings::import
5#use bytes;
6
7355µs3358µs
# spent 187µs (16+171) within IO::Uncompress::Adapter::Inflate::BEGIN@7 which was called: # once (16µs+171µs) by IO::Uncompress::RawInflate::BEGIN@12 at line 7
use IO::Compress::Base::Common 2.069 qw(:Status);
# spent 187µs making 1 call to IO::Uncompress::Adapter::Inflate::BEGIN@7 # spent 162µs making 1 call to Exporter::import # spent 9µs making 1 call to UNIVERSAL::VERSION
83565µs3402µs
# spent 210µs (18+192) within IO::Uncompress::Adapter::Inflate::BEGIN@8 which was called: # once (18µs+192µs) by IO::Uncompress::RawInflate::BEGIN@12 at line 8
use Compress::Raw::Zlib 2.069 qw(Z_OK Z_BUF_ERROR Z_STREAM_END Z_FINISH MAX_WBITS);
# spent 210µs making 1 call to IO::Uncompress::Adapter::Inflate::BEGIN@8 # spent 184µs making 1 call to Exporter::import # spent 8µs making 1 call to UNIVERSAL::VERSION
9
10our ($VERSION);
111900ns$VERSION = '2.069_001';
12
- -
15sub mkUncompObject
16
# spent 73.9ms (5.39+68.5) within IO::Uncompress::Adapter::Inflate::mkUncompObject which was called 40 times, avg 1.85ms/call: # 40 times (5.39ms+68.5ms) by IO::Uncompress::RawInflate::mkUncomp at line 76 of IO/Uncompress/RawInflate.pm, avg 1.85ms/call
{
1740473µs my $crc32 = shift || 1;
184064µs my $adler32 = shift || 1;
194056µs my $scan = shift || 0;
20
214050µs my $inflate ;
22 my $status ;
23
244096µs if ($scan)
25 {
26 ($inflate, $status) = new Compress::Raw::Zlib::InflateScan
27 #LimitOutput => 1,
28 CRC32 => $crc32,
29 ADLER32 => $adler32,
30 WindowBits => - MAX_WBITS ;
31 }
32 else
33 {
34404.39ms8068.2ms ($inflate, $status) = new Compress::Raw::Zlib::Inflate
# spent 66.5ms making 40 calls to Compress::Raw::Zlib::Inflate::new, avg 1.66ms/call # spent 1.70ms making 40 calls to Compress::Raw::Zlib::__ANON__[Compress/Raw/Zlib.pm:114], avg 42µs/call
35 AppendOutput => 1,
36 LimitOutput => 1,
37 CRC32 => $crc32,
38 ADLER32 => $adler32,
39 WindowBits => - MAX_WBITS ;
40 }
41
4240318µs40259µs return (undef, "Could not create Inflation object: $status", $status)
# spent 228µs making 39 calls to Compress::Raw::Zlib::__ANON__[Compress/Raw/Zlib.pm:114], avg 6µs/call # spent 31µs making 1 call to Compress::Raw::Zlib::AUTOLOAD
43 if $status != Z_OK ;
44
45401.33ms return bless {'Inf' => $inflate,
46 'CompSize' => 0,
47 'UnCompSize' => 0,
48 'Error' => '',
49 'ConsumesInput' => 1,
50 } ;
51
52}
53
54sub uncompr
55
# spent 21.7ms (6.00+15.7) within IO::Uncompress::Adapter::Inflate::uncompr which was called 182 times, avg 119µs/call: # 182 times (6.00ms+15.7ms) by IO::Uncompress::Base::_raw_read at line 913 of IO/Uncompress/Base.pm, avg 119µs/call
{
56182143µs my $self = shift ;
57182134µs my $from = shift ;
58182130µs my $to = shift ;
59182166µs my $eof = shift ;
60
61182197µs my $inf = $self->{Inf};
62
6318214.3ms18213.2ms my $status = $inf->inflate($from, $to, $eof);
# spent 13.2ms making 182 calls to Compress::Raw::Zlib::inflateStream::inflate, avg 72µs/call
64182243µs $self->{ErrorNo} = $status;
65
661822.23ms5051.95ms if ($status != Z_OK && $status != Z_STREAM_END && $status != Z_BUF_ERROR)
# spent 1.90ms making 503 calls to Compress::Raw::Zlib::__ANON__[Compress/Raw/Zlib.pm:114], avg 4µs/call # spent 54µs making 2 calls to Compress::Raw::Zlib::AUTOLOAD, avg 27µs/call
67 {
68 $self->{Error} = "Inflation Error: $status";
69 return STATUS_ERROR;
70 }
71
721821.03ms182414µs return STATUS_OK if $status == Z_BUF_ERROR ; # ???
# spent 414µs making 182 calls to Compress::Raw::Zlib::__ANON__[Compress/Raw/Zlib.pm:114], avg 2µs/call
7341141µs4198µs return STATUS_OK if $status == Z_OK ;
# spent 98µs making 41 calls to Compress::Raw::Zlib::__ANON__[Compress/Raw/Zlib.pm:114], avg 2µs/call
7441267µs4189µs return STATUS_ENDSTREAM if $status == Z_STREAM_END ;
# spent 89µs making 41 calls to Compress::Raw::Zlib::__ANON__[Compress/Raw/Zlib.pm:114], avg 2µs/call
75 return STATUS_ERROR ;
76}
77
78sub reset
79
# spent 536µs (388+147) within IO::Uncompress::Adapter::Inflate::reset which was called 40 times, avg 13µs/call: # 40 times (388µs+147µs) by IO::Uncompress::Base::reset at line 987 of IO/Uncompress/Base.pm, avg 13µs/call
{
804041µs my $self = shift ;
8140380µs40147µs $self->{Inf}->inflateReset();
# spent 147µs making 40 calls to Compress::Raw::Zlib::inflateStream::inflateReset, avg 4µs/call
82
8340180µs return STATUS_OK ;
84}
85
86#sub count
87#{
88# my $self = shift ;
89# $self->{Inf}->inflateCount();
90#}
91
92sub crc32
93{
94 my $self = shift ;
95 $self->{Inf}->crc32();
96}
97
98sub compressedBytes
99{
100 my $self = shift ;
101 $self->{Inf}->compressedBytes();
102}
103
104sub uncompressedBytes
105{
106 my $self = shift ;
107 $self->{Inf}->uncompressedBytes();
108}
109
110sub adler32
111{
112 my $self = shift ;
113 $self->{Inf}->adler32();
114}
115
116sub sync
117{
118 my $self = shift ;
119 ( $self->{Inf}->inflateSync(@_) == Z_OK)
120 ? STATUS_OK
121 : STATUS_ERROR ;
122}
123
124
125sub getLastBlockOffset
126{
127 my $self = shift ;
128 $self->{Inf}->getLastBlockOffset();
129}
130
131sub getEndOffset
132{
133 my $self = shift ;
134 $self->{Inf}->getEndOffset();
135}
136
137sub resetLastBlockByte
138{
139 my $self = shift ;
140 $self->{Inf}->resetLastBlockByte(@_);
141}
142
143sub createDeflateStream
144{
145 my $self = shift ;
146 my $deflate = $self->{Inf}->createDeflateStream(@_);
147 return bless {'Def' => $deflate,
148 'CompSize' => 0,
149 'UnCompSize' => 0,
150 'Error' => '',
151 }, 'IO::Compress::Adapter::Deflate';
152}
153
15414µs1;
155
156
157__END__