Filename | /usr/lib/perl/5.10/IO/Compress/Gzip/Constants.pm |
Statements | Executed 101 statements in 1.52ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 19µs | 79µs | BEGIN@143 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 19µs | 24µs | BEGIN@3 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 17µs | 87µs | BEGIN@113 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 16µs | 59µs | BEGIN@74 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 16µs | 59µs | BEGIN@76 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 16µs | 16µs | CORE:pack (opcode) | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 16µs | 56µs | BEGIN@109 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 14µs | 55µs | BEGIN@80 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 13µs | 47µs | BEGIN@69 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 13µs | 48µs | BEGIN@92 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 13µs | 64µs | BEGIN@86 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 13µs | 45µs | BEGIN@88 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 13µs | 72µs | BEGIN@65 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 13µs | 45µs | BEGIN@70 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 10µs | 13µs | BEGIN@5 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 10µs | 24µs | BEGIN@4 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 10µs | 46µs | BEGIN@87 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 10µs | 48µs | BEGIN@114 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 9µs | 45µs | BEGIN@115 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 9µs | 43µs | BEGIN@77 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 9µs | 42µs | BEGIN@82 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 9µs | 42µs | BEGIN@75 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 9µs | 42µs | BEGIN@73 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 9µs | 41µs | BEGIN@67 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 9µs | 42µs | BEGIN@111 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 9µs | 46µs | BEGIN@84 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 9µs | 41µs | BEGIN@66 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 9µs | 40µs | BEGIN@119 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 8µs | 40µs | BEGIN@89 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 8µs | 40µs | BEGIN@90 | IO::Compress::Gzip::Constants::
1 | 1 | 1 | 8µs | 40µs | BEGIN@78 | IO::Compress::Gzip::Constants::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package IO::Compress::Gzip::Constants; | ||||
2 | |||||
3 | 3 | 29µs | 2 | 29µs | # spent 24µs (19+5) within IO::Compress::Gzip::Constants::BEGIN@3 which was called:
# once (19µs+5µs) by IO::Compress::Gzip::BEGIN@15 at line 3 # spent 24µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@3
# spent 5µs making 1 call to strict::import |
4 | 3 | 27µs | 2 | 38µs | # spent 24µs (10+14) within IO::Compress::Gzip::Constants::BEGIN@4 which was called:
# once (10µs+14µs) by IO::Compress::Gzip::BEGIN@15 at line 4 # spent 24µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@4
# spent 14µs making 1 call to warnings::import |
5 | 3 | 193µs | 2 | 16µs | # spent 13µs (10+3) within IO::Compress::Gzip::Constants::BEGIN@5 which was called:
# once (10µs+3µs) by IO::Compress::Gzip::BEGIN@15 at line 5 # spent 13µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@5
# spent 3µs making 1 call to bytes::import |
6 | |||||
7 | 1 | 900ns | require Exporter; | ||
8 | |||||
9 | 1 | 800ns | our ($VERSION, @ISA, @EXPORT, %GZIP_OS_Names); | ||
10 | 1 | 200ns | our ($GZIP_FNAME_INVALID_CHAR_RE, $GZIP_FCOMMENT_INVALID_CHAR_RE); | ||
11 | |||||
12 | 1 | 700ns | $VERSION = '2.020'; | ||
13 | |||||
14 | 1 | 19µs | @ISA = qw(Exporter); | ||
15 | |||||
16 | 1 | 6µ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 | |||||
65 | 3 | 38µs | 2 | 132µs | # spent 72µs (13+60) within IO::Compress::Gzip::Constants::BEGIN@65 which was called:
# once (13µs+60µs) by IO::Compress::Gzip::BEGIN@15 at line 65 # spent 72µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@65
# spent 60µs making 1 call to constant::import |
66 | 3 | 30µs | 2 | 74µs | # spent 41µs (9+33) within IO::Compress::Gzip::Constants::BEGIN@66 which was called:
# once (9µs+33µs) by IO::Compress::Gzip::BEGIN@15 at line 66 # spent 41µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@66
# spent 33µs making 1 call to constant::import |
67 | 3 | 38µs | 2 | 73µs | # spent 41µs (9+32) within IO::Compress::Gzip::Constants::BEGIN@67 which was called:
# once (9µs+32µs) by IO::Compress::Gzip::BEGIN@15 at line 67 # spent 41µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@67
# spent 32µs making 1 call to constant::import |
68 | |||||
69 | 3 | 34µs | 2 | 81µs | # spent 47µs (13+34) within IO::Compress::Gzip::Constants::BEGIN@69 which was called:
# once (13µs+34µs) by IO::Compress::Gzip::BEGIN@15 at line 69 # spent 47µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@69
# spent 34µs making 1 call to constant::import |
70 | 3 | 32µs | 2 | 77µs | # spent 45µs (13+32) within IO::Compress::Gzip::Constants::BEGIN@70 which was called:
# once (13µs+32µs) by IO::Compress::Gzip::BEGIN@15 at line 70 # spent 45µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@70
# spent 32µs making 1 call to constant::import |
71 | |||||
72 | |||||
73 | 3 | 29µs | 2 | 74µs | # spent 42µs (9+33) within IO::Compress::Gzip::Constants::BEGIN@73 which was called:
# once (9µs+33µs) by IO::Compress::Gzip::BEGIN@15 at line 73 # spent 42µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@73
# spent 33µs making 1 call to constant::import |
74 | 3 | 32µs | 2 | 102µs | # spent 59µs (16+43) within IO::Compress::Gzip::Constants::BEGIN@74 which was called:
# once (16µs+43µs) by IO::Compress::Gzip::BEGIN@15 at line 74 # spent 59µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@74
# spent 43µs making 1 call to constant::import |
75 | 3 | 60µs | 2 | 76µs | # spent 42µs (9+34) within IO::Compress::Gzip::Constants::BEGIN@75 which was called:
# once (9µs+34µs) by IO::Compress::Gzip::BEGIN@15 at line 75 # spent 42µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@75
# spent 34µs making 1 call to constant::import |
76 | 3 | 37µs | 2 | 103µs | # spent 59µs (16+43) within IO::Compress::Gzip::Constants::BEGIN@76 which was called:
# once (16µs+43µs) by IO::Compress::Gzip::BEGIN@15 at line 76 # spent 59µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@76
# spent 43µs making 1 call to constant::import |
77 | 3 | 29µs | 2 | 78µs | # spent 43µs (9+34) within IO::Compress::Gzip::Constants::BEGIN@77 which was called:
# once (9µs+34µs) by IO::Compress::Gzip::BEGIN@15 at line 77 # spent 43µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@77
# spent 34µs making 1 call to constant::import |
78 | 3 | 54µs | 2 | 71µs | # spent 40µs (8+31) within IO::Compress::Gzip::Constants::BEGIN@78 which was called:
# once (8µs+31µs) by IO::Compress::Gzip::BEGIN@15 at line 78 # spent 40µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@78
# spent 31µs making 1 call to constant::import |
79 | #use constant GZIP_FLG_ENCRYPTED => 0x20 ; # documented in gzip sources | ||||
80 | 3 | 42µs | 2 | 96µs | # spent 55µs (14+41) within IO::Compress::Gzip::Constants::BEGIN@80 which was called:
# once (14µs+41µs) by IO::Compress::Gzip::BEGIN@15 at line 80 # spent 55µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@80
# spent 41µs making 1 call to constant::import |
81 | |||||
82 | 3 | 31µs | 2 | 75µs | # spent 42µs (9+33) within IO::Compress::Gzip::Constants::BEGIN@82 which was called:
# once (9µs+33µs) by IO::Compress::Gzip::BEGIN@15 at line 82 # spent 42µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@82
# spent 33µs making 1 call to constant::import |
83 | |||||
84 | 3 | 32µs | 2 | 84µs | # spent 46µs (9+37) within IO::Compress::Gzip::Constants::BEGIN@84 which was called:
# once (9µs+37µs) by IO::Compress::Gzip::BEGIN@15 at line 84 # spent 46µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@84
# spent 37µs making 1 call to constant::import |
85 | |||||
86 | 3 | 38µs | 2 | 115µs | # spent 64µs (13+51) within IO::Compress::Gzip::Constants::BEGIN@86 which was called:
# once (13µs+51µs) by IO::Compress::Gzip::BEGIN@15 at line 86 # spent 64µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@86
# spent 51µs making 1 call to constant::import |
87 | 3 | 31µs | 2 | 83µs | # spent 46µs (10+37) within IO::Compress::Gzip::Constants::BEGIN@87 which was called:
# once (10µs+37µs) by IO::Compress::Gzip::BEGIN@15 at line 87 # spent 46µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@87
# spent 37µs making 1 call to constant::import |
88 | 3 | 31µs | 2 | 76µs | # spent 45µs (13+32) within IO::Compress::Gzip::Constants::BEGIN@88 which was called:
# once (13µs+32µs) by IO::Compress::Gzip::BEGIN@15 at line 88 # spent 45µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@88
# spent 32µs making 1 call to constant::import |
89 | 3 | 35µs | 2 | 72µs | # spent 40µs (8+32) within IO::Compress::Gzip::Constants::BEGIN@89 which was called:
# once (8µs+32µs) by IO::Compress::Gzip::BEGIN@15 at line 89 # spent 40µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@89
# spent 32µs making 1 call to constant::import |
90 | 1 | 32µs | # spent 40µs (8+32) within IO::Compress::Gzip::Constants::BEGIN@90 which was called:
# once (8µs+32µs) by IO::Compress::Gzip::BEGIN@15 at line 91 # spent 32µs making 1 call to constant::import | ||
91 | 3 | 34µs | 1 | 40µs | GZIP_FEXTRA_SUBFIELD_LEN_SIZE; # spent 40µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@90 |
92 | 1 | 35µs | # spent 48µs (13+35) within IO::Compress::Gzip::Constants::BEGIN@92 which was called:
# once (13µs+35µs) by IO::Compress::Gzip::BEGIN@15 at line 93 # spent 35µs making 1 call to constant::import | ||
93 | 3 | 135µs | 1 | 48µs | GZIP_FEXTRA_SUBFIELD_HEADER_SIZE ; # spent 48µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@92 |
94 | |||||
95 | |||||
96 | 3 | 2µs | if (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 | } | ||||
103 | else | ||||
104 | { | ||||
105 | $GZIP_FNAME_INVALID_CHAR_RE = '[\x00-\x1F\x7F-\x9F]'; | ||||
106 | $GZIP_FCOMMENT_INVALID_CHAR_RE = '[\x00-\x09\x11-\x1F\x7F-\x9F]'; | ||||
107 | } | ||||
108 | |||||
109 | 3 | 35µs | 2 | 96µs | # spent 56µs (16+40) within IO::Compress::Gzip::Constants::BEGIN@109 which was called:
# once (16µs+40µs) by IO::Compress::Gzip::BEGIN@15 at line 109 # spent 56µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@109
# spent 40µs making 1 call to constant::import |
110 | |||||
111 | 3 | 47µs | 2 | 75µs | # spent 42µs (9+33) within IO::Compress::Gzip::Constants::BEGIN@111 which was called:
# once (9µs+33µs) by IO::Compress::Gzip::BEGIN@15 at line 111 # spent 42µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@111
# spent 33µs making 1 call to constant::import |
112 | |||||
113 | 3 | 42µs | 2 | 157µs | # spent 87µs (17+70) within IO::Compress::Gzip::Constants::BEGIN@113 which was called:
# once (17µs+70µs) by IO::Compress::Gzip::BEGIN@15 at line 113 # spent 87µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@113
# spent 70µs making 1 call to constant::import |
114 | 3 | 39µs | 2 | 85µs | # spent 48µs (10+38) within IO::Compress::Gzip::Constants::BEGIN@114 which was called:
# once (10µs+38µs) by IO::Compress::Gzip::BEGIN@15 at line 114 # spent 48µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@114
# spent 38µs making 1 call to constant::import |
115 | 3 | 32µs | 2 | 80µs | # spent 45µs (9+35) within IO::Compress::Gzip::Constants::BEGIN@115 which was called:
# once (9µs+35µs) by IO::Compress::Gzip::BEGIN@15 at line 115 # spent 45µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@115
# spent 35µs making 1 call to constant::import |
116 | |||||
117 | # OS Names sourced from http://www.gzip.org/format.txt | ||||
118 | |||||
119 | 3 | 124µs | 2 | 72µs | # spent 40µs (9+32) within IO::Compress::Gzip::Constants::BEGIN@119 which was called:
# once (9µs+32µs) by IO::Compress::Gzip::BEGIN@15 at line 119 # spent 40µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@119
# spent 32µs making 1 call to constant::import |
120 | 1 | 16µ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 | |||||
143 | 2 | 59µs | # spent 79µs (19+60) within IO::Compress::Gzip::Constants::BEGIN@143 which was called:
# once (19µs+60µs) by IO::Compress::Gzip::BEGIN@15 at line 145 # spent 44µs making 1 call to constant::import
# spent 16µs making 1 call to IO::Compress::Gzip::Constants::CORE:pack | ||
144 | GZIP_ID1, GZIP_ID2, GZIP_CM_DEFLATED, GZIP_FLG_DEFAULT, | ||||
145 | 3 | 73µs | 1 | 79µs | GZIP_MTIME_DEFAULT, GZIP_XFL_DEFAULT, GZIP_OS_DEFAULT) ; # spent 79µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@143 |
146 | |||||
147 | |||||
148 | 1 | 14µs | 1; | ||
# spent 16µs within IO::Compress::Gzip::Constants::CORE:pack which was called:
# once (16µs+0s) by IO::Compress::Gzip::Constants::BEGIN@143 at line 143 |