← Index
NYTProf Performance Profile   « line view »
For /usr/sbin/pkg_info
  Run on Fri Aug 4 10:12:01 2017
Reported on Fri Aug 4 10:12:17 2017

Filename/usr/libdata/perl5/amd64-openbsd/IO/Compress/Gzip/Constants.pm
StatementsExecuted 69 statements in 1.27ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11117µs21µsIO::Compress::Gzip::Constants::::BEGIN@3IO::Compress::Gzip::Constants::BEGIN@3
11117µs64µsIO::Compress::Gzip::Constants::::BEGIN@77IO::Compress::Gzip::Constants::BEGIN@77
11111µs60µsIO::Compress::Gzip::Constants::::BEGIN@109IO::Compress::Gzip::Constants::BEGIN@109
11111µs81µsIO::Compress::Gzip::Constants::::BEGIN@65IO::Compress::Gzip::Constants::BEGIN@65
11111µs13µsIO::Compress::Gzip::Constants::::BEGIN@5IO::Compress::Gzip::Constants::BEGIN@5
11110µs56µsIO::Compress::Gzip::Constants::::BEGIN@87IO::Compress::Gzip::Constants::BEGIN@87
1119µs76µsIO::Compress::Gzip::Constants::::BEGIN@143IO::Compress::Gzip::Constants::BEGIN@143
1119µs57µsIO::Compress::Gzip::Constants::::BEGIN@75IO::Compress::Gzip::Constants::BEGIN@75
1119µs17µsIO::Compress::Gzip::Constants::::BEGIN@4IO::Compress::Gzip::Constants::BEGIN@4
1118µs55µsIO::Compress::Gzip::Constants::::BEGIN@114IO::Compress::Gzip::Constants::BEGIN@114
1118µs63µsIO::Compress::Gzip::Constants::::BEGIN@69IO::Compress::Gzip::Constants::BEGIN@69
1118µs61µsIO::Compress::Gzip::Constants::::BEGIN@113IO::Compress::Gzip::Constants::BEGIN@113
1118µs55µsIO::Compress::Gzip::Constants::::BEGIN@78IO::Compress::Gzip::Constants::BEGIN@78
1118µs55µsIO::Compress::Gzip::Constants::::BEGIN@89IO::Compress::Gzip::Constants::BEGIN@89
1118µs74µsIO::Compress::Gzip::Constants::::BEGIN@115IO::Compress::Gzip::Constants::BEGIN@115
1118µs59µsIO::Compress::Gzip::Constants::::BEGIN@70IO::Compress::Gzip::Constants::BEGIN@70
1118µs55µsIO::Compress::Gzip::Constants::::BEGIN@74IO::Compress::Gzip::Constants::BEGIN@74
1118µs57µsIO::Compress::Gzip::Constants::::BEGIN@80IO::Compress::Gzip::Constants::BEGIN@80
1118µs59µsIO::Compress::Gzip::Constants::::BEGIN@66IO::Compress::Gzip::Constants::BEGIN@66
1118µs54µsIO::Compress::Gzip::Constants::::BEGIN@82IO::Compress::Gzip::Constants::BEGIN@82
1118µs54µsIO::Compress::Gzip::Constants::::BEGIN@111IO::Compress::Gzip::Constants::BEGIN@111
1118µs55µsIO::Compress::Gzip::Constants::::BEGIN@67IO::Compress::Gzip::Constants::BEGIN@67
1118µs55µsIO::Compress::Gzip::Constants::::BEGIN@86IO::Compress::Gzip::Constants::BEGIN@86
1118µs55µsIO::Compress::Gzip::Constants::::BEGIN@73IO::Compress::Gzip::Constants::BEGIN@73
1118µs54µsIO::Compress::Gzip::Constants::::BEGIN@84IO::Compress::Gzip::Constants::BEGIN@84
1118µs54µsIO::Compress::Gzip::Constants::::BEGIN@119IO::Compress::Gzip::Constants::BEGIN@119
1118µs54µsIO::Compress::Gzip::Constants::::BEGIN@90IO::Compress::Gzip::Constants::BEGIN@90
1117µs64µsIO::Compress::Gzip::Constants::::BEGIN@76IO::Compress::Gzip::Constants::BEGIN@76
1117µs56µsIO::Compress::Gzip::Constants::::BEGIN@92IO::Compress::Gzip::Constants::BEGIN@92
1117µs53µsIO::Compress::Gzip::Constants::::BEGIN@88IO::Compress::Gzip::Constants::BEGIN@88
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package IO::Compress::Gzip::Constants;
2
3229µs224µs
# spent 21µs (17+4) within IO::Compress::Gzip::Constants::BEGIN@3 which was called: # once (17µs+4µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 3
use strict ;
# spent 21µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@3 # spent 4µs making 1 call to strict::import
4222µs226µs
# spent 17µs (9+9) within IO::Compress::Gzip::Constants::BEGIN@4 which was called: # once (9µs+9µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 4
use warnings;
# spent 17µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@4 # spent 9µs making 1 call to warnings::import
52131µs216µs
# spent 13µs (11+3) within IO::Compress::Gzip::Constants::BEGIN@5 which was called: # once (11µs+3µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 5
use bytes;
# spent 13µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@5 # spent 3µs making 1 call to bytes::import
6
71900nsrequire Exporter;
8
9our ($VERSION, @ISA, @EXPORT, %GZIP_OS_Names);
10our ($GZIP_FNAME_INVALID_CHAR_RE, $GZIP_FCOMMENT_INVALID_CHAR_RE);
11
1211µs$VERSION = '2.069_001';
13
1417µs@ISA = qw(Exporter);
15
1614µs@EXPORT= qw(
17
18 GZIP_ID_SIZE
19 GZIP_ID1
20 GZIP_ID2
21
22 GZIP_FLG_DEFAULT
23 GZIP_FLG_FTEXT
24 GZIP_FLG_FHCRC
25 GZIP_FLG_FEXTRA
26 GZIP_FLG_FNAME
27 GZIP_FLG_FCOMMENT
28 GZIP_FLG_RESERVED
29
30 GZIP_CM_DEFLATED
31
32 GZIP_MIN_HEADER_SIZE
33 GZIP_TRAILER_SIZE
34
35 GZIP_MTIME_DEFAULT
36 GZIP_XFL_DEFAULT
37 GZIP_FEXTRA_HEADER_SIZE
38 GZIP_FEXTRA_MAX_SIZE
39 GZIP_FEXTRA_SUBFIELD_HEADER_SIZE
40 GZIP_FEXTRA_SUBFIELD_ID_SIZE
41 GZIP_FEXTRA_SUBFIELD_LEN_SIZE
42 GZIP_FEXTRA_SUBFIELD_MAX_SIZE
43
44 $GZIP_FNAME_INVALID_CHAR_RE
45 $GZIP_FCOMMENT_INVALID_CHAR_RE
46
47 GZIP_FHCRC_SIZE
48
49 GZIP_ISIZE_MAX
50 GZIP_ISIZE_MOD_VALUE
51
52
53 GZIP_NULL_BYTE
54
55 GZIP_OS_DEFAULT
56
57 %GZIP_OS_Names
58
59 GZIP_MINIMUM_HEADER
60
61 );
62
63# Constant names derived from RFC 1952
64
65241µs2150µs
# spent 81µs (11+70) within IO::Compress::Gzip::Constants::BEGIN@65 which was called: # once (11µs+70µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 65
use constant GZIP_ID_SIZE => 2 ;
# spent 81µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@65 # spent 70µs making 1 call to constant::import
66226µs2110µs
# spent 59µs (8+51) within IO::Compress::Gzip::Constants::BEGIN@66 which was called: # once (8µs+51µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 66
use constant GZIP_ID1 => 0x1F;
# spent 59µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@66 # spent 51µs making 1 call to constant::import
67227µs2102µs
# spent 55µs (8+47) within IO::Compress::Gzip::Constants::BEGIN@67 which was called: # once (8µs+47µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 67
use constant GZIP_ID2 => 0x8B;
# spent 55µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@67 # spent 47µs making 1 call to constant::import
68
69225µs2118µs
# spent 63µs (8+55) within IO::Compress::Gzip::Constants::BEGIN@69 which was called: # once (8µs+55µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 69
use constant GZIP_MIN_HEADER_SIZE => 10 ;# minimum gzip header size
# spent 63µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@69 # spent 55µs making 1 call to constant::import
70224µs2111µs
# spent 59µs (8+51) within IO::Compress::Gzip::Constants::BEGIN@70 which was called: # once (8µs+51µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 70
use constant GZIP_TRAILER_SIZE => 8 ;
# spent 59µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@70 # spent 51µs making 1 call to constant::import
71
72
73230µs2102µs
# spent 55µs (8+47) within IO::Compress::Gzip::Constants::BEGIN@73 which was called: # once (8µs+47µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 73
use constant GZIP_FLG_DEFAULT => 0x00 ;
# spent 55µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@73 # spent 47µs making 1 call to constant::import
74278µs2103µs
# spent 55µs (8+47) within IO::Compress::Gzip::Constants::BEGIN@74 which was called: # once (8µs+47µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 74
use constant GZIP_FLG_FTEXT => 0x01 ;
# spent 55µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@74 # spent 47µs making 1 call to constant::import
75225µs2106µs
# spent 57µs (9+48) within IO::Compress::Gzip::Constants::BEGIN@75 which was called: # once (9µs+48µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 75
use constant GZIP_FLG_FHCRC => 0x02 ; # called CONTINUATION in gzip
# spent 57µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@75 # spent 48µs making 1 call to constant::import
76234µs2120µs
# spent 64µs (7+56) within IO::Compress::Gzip::Constants::BEGIN@76 which was called: # once (7µs+56µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 76
use constant GZIP_FLG_FEXTRA => 0x04 ;
# spent 64µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@76 # spent 56µs making 1 call to constant::import
77233µs2112µs
# spent 64µs (17+48) within IO::Compress::Gzip::Constants::BEGIN@77 which was called: # once (17µs+48µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 77
use constant GZIP_FLG_FNAME => 0x08 ;
# spent 64µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@77 # spent 48µs making 1 call to constant::import
78242µs2102µs
# spent 55µs (8+47) within IO::Compress::Gzip::Constants::BEGIN@78 which was called: # once (8µs+47µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 78
use constant GZIP_FLG_FCOMMENT => 0x10 ;
# spent 55µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@78 # spent 47µs making 1 call to constant::import
79#use constant GZIP_FLG_ENCRYPTED => 0x20 ; # documented in gzip sources
80224µs2105µs
# spent 57µs (8+49) within IO::Compress::Gzip::Constants::BEGIN@80 which was called: # once (8µs+49µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 80
use constant GZIP_FLG_RESERVED => (0x20 | 0x40 | 0x80) ;
# spent 57µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@80 # spent 49µs making 1 call to constant::import
81
82231µs299µs
# spent 54µs (8+46) within IO::Compress::Gzip::Constants::BEGIN@82 which was called: # once (8µs+46µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 82
use constant GZIP_XFL_DEFAULT => 0x00 ;
# spent 54µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@82 # spent 46µs making 1 call to constant::import
83
84232µs2101µs
# spent 54µs (8+46) within IO::Compress::Gzip::Constants::BEGIN@84 which was called: # once (8µs+46µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 84
use constant GZIP_MTIME_DEFAULT => 0x00 ;
# spent 54µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@84 # spent 46µs making 1 call to constant::import
85
86222µs2103µs
# spent 55µs (8+48) within IO::Compress::Gzip::Constants::BEGIN@86 which was called: # once (8µs+48µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 86
use constant GZIP_FEXTRA_HEADER_SIZE => 2 ;
# spent 55µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@86 # spent 48µs making 1 call to constant::import
87222µs2101µs
# spent 56µs (10+46) within IO::Compress::Gzip::Constants::BEGIN@87 which was called: # once (10µs+46µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 87
use constant GZIP_FEXTRA_MAX_SIZE => 0xFFFF ;
# spent 56µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@87 # spent 46µs making 1 call to constant::import
88232µs298µs
# spent 53µs (7+46) within IO::Compress::Gzip::Constants::BEGIN@88 which was called: # once (7µs+46µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 88
use constant GZIP_FEXTRA_SUBFIELD_ID_SIZE => 2 ;
# spent 53µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@88 # spent 46µs making 1 call to constant::import
89229µs2101µs
# spent 55µs (8+46) within IO::Compress::Gzip::Constants::BEGIN@89 which was called: # once (8µs+46µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 89
use constant GZIP_FEXTRA_SUBFIELD_LEN_SIZE => 2 ;
# spent 55µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@89 # spent 46µs making 1 call to constant::import
901900ns
# spent 54µs (8+46) within IO::Compress::Gzip::Constants::BEGIN@90 which was called: # once (8µs+46µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 91
use constant GZIP_FEXTRA_SUBFIELD_HEADER_SIZE => GZIP_FEXTRA_SUBFIELD_ID_SIZE +
91127µs2100µs GZIP_FEXTRA_SUBFIELD_LEN_SIZE;
# spent 54µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@90 # spent 46µs making 1 call to constant::import
921800ns
# spent 56µs (7+49) within IO::Compress::Gzip::Constants::BEGIN@92 which was called: # once (7µs+49µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 93
use constant GZIP_FEXTRA_SUBFIELD_MAX_SIZE => GZIP_FEXTRA_MAX_SIZE -
93166µs2105µs GZIP_FEXTRA_SUBFIELD_HEADER_SIZE ;
# spent 56µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@92 # spent 49µs making 1 call to constant::import
94
95
9611µsif (ord('A') == 193)
97{
98 # EBCDIC
99 $GZIP_FNAME_INVALID_CHAR_RE = '[\x00-\x3f\xff]';
100 $GZIP_FCOMMENT_INVALID_CHAR_RE = '[\x00-\x0a\x11-\x14\x16-\x3f\xff]';
101
102}
103else
104{
1051700ns $GZIP_FNAME_INVALID_CHAR_RE = '[\x00-\x1F\x7F-\x9F]';
1061900ns $GZIP_FCOMMENT_INVALID_CHAR_RE = '[\x00-\x09\x11-\x1F\x7F-\x9F]';
107}
108
109237µs2109µs
# spent 60µs (11+49) within IO::Compress::Gzip::Constants::BEGIN@109 which was called: # once (11µs+49µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 109
use constant GZIP_FHCRC_SIZE => 2 ; # aka CONTINUATION in gzip
# spent 60µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@109 # spent 49µs making 1 call to constant::import
110
111230µs2100µs
# spent 54µs (8+46) within IO::Compress::Gzip::Constants::BEGIN@111 which was called: # once (8µs+46µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 111
use constant GZIP_CM_DEFLATED => 8 ;
# spent 54µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@111 # spent 46µs making 1 call to constant::import
112
113231µs2114µs
# spent 61µs (8+53) within IO::Compress::Gzip::Constants::BEGIN@113 which was called: # once (8µs+53µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 113
use constant GZIP_NULL_BYTE => "\x00";
# spent 61µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@113 # spent 53µs making 1 call to constant::import
114233µs2102µs
# spent 55µs (8+47) within IO::Compress::Gzip::Constants::BEGIN@114 which was called: # once (8µs+47µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 114
use constant GZIP_ISIZE_MAX => 0xFFFFFFFF ;
# spent 55µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@114 # spent 47µs making 1 call to constant::import
115227µs2141µs
# spent 74µs (8+66) within IO::Compress::Gzip::Constants::BEGIN@115 which was called: # once (8µs+66µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 115
use constant GZIP_ISIZE_MOD_VALUE => GZIP_ISIZE_MAX + 1 ;
# spent 74µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@115 # spent 66µs making 1 call to constant::import
116
117# OS Names sourced from http://www.gzip.org/format.txt
118
1192165µs2101µs
# spent 54µs (8+47) within IO::Compress::Gzip::Constants::BEGIN@119 which was called: # once (8µs+47µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 119
use constant GZIP_OS_DEFAULT=> 0xFF ;
# spent 54µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@119 # spent 47µs making 1 call to constant::import
120124µs%GZIP_OS_Names = (
121 0 => 'MS-DOS',
122 1 => 'Amiga',
123 2 => 'VMS',
124 3 => 'Unix',
125 4 => 'VM/CMS',
126 5 => 'Atari TOS',
127 6 => 'HPFS (OS/2, NT)',
128 7 => 'Macintosh',
129 8 => 'Z-System',
130 9 => 'CP/M',
131 10 => 'TOPS-20',
132 11 => 'NTFS (NT)',
133 12 => 'SMS QDOS',
134 13 => 'Acorn RISCOS',
135 14 => 'VFAT file system (Win95, NT)',
136 15 => 'MVS',
137 16 => 'BeOS',
138 17 => 'Tandem/NSK',
139 18 => 'THEOS',
140 GZIP_OS_DEFAULT() => 'Unknown',
141 ) ;
142
1431800ns
# spent 76µs (9+66) within IO::Compress::Gzip::Constants::BEGIN@143 which was called: # once (9µs+66µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 145
use constant GZIP_MINIMUM_HEADER => pack("C4 V C C",
144 GZIP_ID1, GZIP_ID2, GZIP_CM_DEFLATED, GZIP_FLG_DEFAULT,
145141µs3180µs GZIP_MTIME_DEFAULT, GZIP_XFL_DEFAULT, GZIP_OS_DEFAULT) ;
# spent 76µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@143 # spent 66µs making 1 call to constant::import # spent 38µs making 1 call to main::CORE:pack
146
147
148111µs1;