| File | /usr/local/lib/perl5/5.10.1/darwin-2level/IO/Compress/Gzip/Constants.pm |
| Statements Executed | 101 |
| Statement Execution Time | 1.08ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 33µs | 59µs | IO::Compress::Gzip::Constants::BEGIN@88 |
| 1 | 1 | 1 | 18µs | 58µs | IO::Compress::Gzip::Constants::BEGIN@143 |
| 1 | 1 | 1 | 15µs | 19µs | IO::Compress::Gzip::Constants::BEGIN@3 |
| 1 | 1 | 2 | 13µs | 13µs | IO::Compress::Gzip::Constants::CORE:pack (opcode) |
| 1 | 1 | 1 | 11µs | 62µs | IO::Compress::Gzip::Constants::BEGIN@65 |
| 1 | 1 | 1 | 11µs | 13µs | IO::Compress::Gzip::Constants::BEGIN@5 |
| 1 | 1 | 1 | 10µs | 53µs | IO::Compress::Gzip::Constants::BEGIN@77 |
| 1 | 1 | 1 | 10µs | 41µs | IO::Compress::Gzip::Constants::BEGIN@73 |
| 1 | 1 | 1 | 8µs | 53µs | IO::Compress::Gzip::Constants::BEGIN@76 |
| 1 | 1 | 1 | 8µs | 37µs | IO::Compress::Gzip::Constants::BEGIN@66 |
| 1 | 1 | 1 | 8µs | 35µs | IO::Compress::Gzip::Constants::BEGIN@78 |
| 1 | 1 | 1 | 7µs | 35µs | IO::Compress::Gzip::Constants::BEGIN@89 |
| 1 | 1 | 1 | 7µs | 41µs | IO::Compress::Gzip::Constants::BEGIN@67 |
| 1 | 1 | 1 | 7µs | 18µs | IO::Compress::Gzip::Constants::BEGIN@4 |
| 1 | 1 | 1 | 7µs | 33µs | IO::Compress::Gzip::Constants::BEGIN@82 |
| 1 | 1 | 1 | 7µs | 33µs | IO::Compress::Gzip::Constants::BEGIN@119 |
| 1 | 1 | 1 | 7µs | 32µs | IO::Compress::Gzip::Constants::BEGIN@86 |
| 1 | 1 | 1 | 7µs | 33µs | IO::Compress::Gzip::Constants::BEGIN@70 |
| 1 | 1 | 1 | 7µs | 34µs | IO::Compress::Gzip::Constants::BEGIN@87 |
| 1 | 1 | 1 | 7µs | 33µs | IO::Compress::Gzip::Constants::BEGIN@109 |
| 1 | 1 | 1 | 7µs | 33µs | IO::Compress::Gzip::Constants::BEGIN@69 |
| 1 | 1 | 1 | 6µs | 33µs | IO::Compress::Gzip::Constants::BEGIN@80 |
| 1 | 1 | 1 | 6µs | 32µs | IO::Compress::Gzip::Constants::BEGIN@75 |
| 1 | 1 | 1 | 6µs | 31µs | IO::Compress::Gzip::Constants::BEGIN@74 |
| 1 | 1 | 1 | 6µs | 32µs | IO::Compress::Gzip::Constants::BEGIN@90 |
| 1 | 1 | 1 | 6µs | 31µs | IO::Compress::Gzip::Constants::BEGIN@113 |
| 1 | 1 | 1 | 6µs | 29µs | IO::Compress::Gzip::Constants::BEGIN@114 |
| 1 | 1 | 1 | 6µs | 30µs | IO::Compress::Gzip::Constants::BEGIN@111 |
| 1 | 1 | 1 | 6µs | 30µs | IO::Compress::Gzip::Constants::BEGIN@92 |
| 1 | 1 | 1 | 6µs | 37µs | IO::Compress::Gzip::Constants::BEGIN@115 |
| 1 | 1 | 1 | 6µs | 32µs | IO::Compress::Gzip::Constants::BEGIN@84 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package IO::Compress::Gzip::Constants; | ||||
| 2 | |||||
| 3 | 3 | 22µs | 2 | 23µs | # spent 19µs (15+4) within IO::Compress::Gzip::Constants::BEGIN@3 which was called
# once (15µs+4µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 3 # spent 19µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@3
# spent 4µs making 1 call to strict::import |
| 4 | 3 | 39µs | 2 | 30µs | # spent 18µs (7+11) within IO::Compress::Gzip::Constants::BEGIN@4 which was called
# once (7µs+11µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 4 # spent 18µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@4
# spent 11µs making 1 call to warnings::import |
| 5 | 3 | 125µs | 2 | 16µ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 # 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 | 600ns | require Exporter; | ||
| 8 | |||||
| 9 | 1 | 400ns | our ($VERSION, @ISA, @EXPORT, %GZIP_OS_Names); | ||
| 10 | 1 | 100ns | our ($GZIP_FNAME_INVALID_CHAR_RE, $GZIP_FCOMMENT_INVALID_CHAR_RE); | ||
| 11 | |||||
| 12 | 1 | 600ns | $VERSION = '2.020'; | ||
| 13 | |||||
| 14 | 1 | 7µs | @ISA = qw(Exporter); | ||
| 15 | |||||
| 16 | 1 | 5µ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 | 113µs | # spent 62µs (11+51) within IO::Compress::Gzip::Constants::BEGIN@65 which was called
# once (11µs+51µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 65 # spent 62µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@65
# spent 51µs making 1 call to constant::import |
| 66 | 3 | 26µs | 2 | 66µs | # spent 37µs (8+29) within IO::Compress::Gzip::Constants::BEGIN@66 which was called
# once (8µs+29µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 66 # spent 37µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@66
# spent 29µs making 1 call to constant::import |
| 67 | 3 | 25µs | 2 | 76µs | # spent 41µs (7+34) within IO::Compress::Gzip::Constants::BEGIN@67 which was called
# once (7µs+34µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 67 # spent 41µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@67
# spent 34µs making 1 call to constant::import |
| 68 | |||||
| 69 | 3 | 24µs | 2 | 59µs | # spent 33µs (7+26) within IO::Compress::Gzip::Constants::BEGIN@69 which was called
# once (7µs+26µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 69 # spent 33µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@69
# spent 26µs making 1 call to constant::import |
| 70 | 3 | 25µs | 2 | 59µs | # spent 33µs (7+26) within IO::Compress::Gzip::Constants::BEGIN@70 which was called
# once (7µs+26µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 70 # spent 33µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@70
# spent 26µs making 1 call to constant::import |
| 71 | |||||
| 72 | |||||
| 73 | 3 | 24µs | 2 | 71µs | # spent 41µs (10+31) within IO::Compress::Gzip::Constants::BEGIN@73 which was called
# once (10µs+31µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 73 # spent 41µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@73
# spent 31µs making 1 call to constant::import |
| 74 | 3 | 25µs | 2 | 57µs | # spent 31µs (6+25) within IO::Compress::Gzip::Constants::BEGIN@74 which was called
# once (6µs+25µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 74 # spent 31µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@74
# spent 25µs making 1 call to constant::import |
| 75 | 3 | 23µs | 2 | 58µs | # spent 32µs (6+26) within IO::Compress::Gzip::Constants::BEGIN@75 which was called
# once (6µs+26µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 75 # spent 32µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@75
# spent 26µs making 1 call to constant::import |
| 76 | 3 | 40µs | 2 | 98µs | # spent 53µs (8+45) within IO::Compress::Gzip::Constants::BEGIN@76 which was called
# once (8µs+45µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 76 # spent 53µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@76
# spent 45µs making 1 call to constant::import |
| 77 | 3 | 30µs | 2 | 95µs | # spent 53µs (10+42) within IO::Compress::Gzip::Constants::BEGIN@77 which was called
# once (10µs+42µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 77 # spent 53µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@77
# spent 42µs making 1 call to constant::import |
| 78 | 3 | 29µs | 2 | 62µs | # spent 35µs (8+27) within IO::Compress::Gzip::Constants::BEGIN@78 which was called
# once (8µs+27µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 78 # spent 35µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@78
# spent 28µs making 1 call to constant::import |
| 79 | #use constant GZIP_FLG_ENCRYPTED => 0x20 ; # documented in gzip sources | ||||
| 80 | 3 | 25µs | 2 | 60µs | # spent 33µs (6+27) within IO::Compress::Gzip::Constants::BEGIN@80 which was called
# once (6µs+27µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 80 # spent 33µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@80
# spent 27µs making 1 call to constant::import |
| 81 | |||||
| 82 | 3 | 24µs | 2 | 58µs | # spent 33µs (7+26) within IO::Compress::Gzip::Constants::BEGIN@82 which was called
# once (7µs+26µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 82 # spent 33µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@82
# spent 26µs making 1 call to constant::import |
| 83 | |||||
| 84 | 3 | 24µs | 2 | 58µs | # spent 32µs (6+26) within IO::Compress::Gzip::Constants::BEGIN@84 which was called
# once (6µs+26µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 84 # spent 32µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@84
# spent 26µs making 1 call to constant::import |
| 85 | |||||
| 86 | 3 | 29µs | 2 | 58µs | # spent 32µs (7+26) within IO::Compress::Gzip::Constants::BEGIN@86 which was called
# once (7µs+26µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 86 # spent 32µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@86
# spent 26µs making 1 call to constant::import |
| 87 | 3 | 26µs | 2 | 60µs | # spent 34µs (7+27) within IO::Compress::Gzip::Constants::BEGIN@87 which was called
# once (7µs+27µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 87 # spent 34µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@87
# spent 27µs making 1 call to constant::import |
| 88 | 3 | 27µs | 2 | 84µs | # spent 59µs (33+25) within IO::Compress::Gzip::Constants::BEGIN@88 which was called
# once (33µs+25µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 88 # spent 59µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@88
# spent 25µs making 1 call to constant::import |
| 89 | 3 | 29µs | 2 | 63µs | # spent 35µs (7+28) within IO::Compress::Gzip::Constants::BEGIN@89 which was called
# once (7µs+28µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 89 # spent 35µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@89
# spent 28µs making 1 call to constant::import |
| 90 | # spent 32µs (6+26) within IO::Compress::Gzip::Constants::BEGIN@90 which was called
# once (6µs+26µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 91 # spent 26µs making 1 call to constant::import | ||||
| 91 | 3 | 32µs | 1 | 32µs | GZIP_FEXTRA_SUBFIELD_LEN_SIZE; # spent 32µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@90 |
| 92 | # spent 30µs (6+24) within IO::Compress::Gzip::Constants::BEGIN@92 which was called
# once (6µs+24µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 93 # spent 24µs making 1 call to constant::import | ||||
| 93 | 3 | 64µs | 1 | 30µs | GZIP_FEXTRA_SUBFIELD_HEADER_SIZE ; # spent 30µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@92 |
| 94 | |||||
| 95 | |||||
| 96 | 1 | 200ns | 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 | 1 | 300ns | $GZIP_FNAME_INVALID_CHAR_RE = '[\x00-\x1F\x7F-\x9F]'; | ||
| 106 | 1 | 300ns | $GZIP_FCOMMENT_INVALID_CHAR_RE = '[\x00-\x09\x11-\x1F\x7F-\x9F]'; | ||
| 107 | } | ||||
| 108 | |||||
| 109 | 3 | 24µs | 2 | 59µs | # spent 33µs (7+26) within IO::Compress::Gzip::Constants::BEGIN@109 which was called
# once (7µs+26µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 109 # spent 33µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@109
# spent 26µs making 1 call to constant::import |
| 110 | |||||
| 111 | 3 | 28µs | 2 | 54µs | # spent 30µs (6+24) within IO::Compress::Gzip::Constants::BEGIN@111 which was called
# once (6µs+24µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 111 # spent 30µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@111
# spent 24µs making 1 call to constant::import |
| 112 | |||||
| 113 | 3 | 23µs | 2 | 55µs | # spent 31µs (6+24) within IO::Compress::Gzip::Constants::BEGIN@113 which was called
# once (6µs+24µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 113 # spent 31µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@113
# spent 24µs making 1 call to constant::import |
| 114 | 3 | 25µs | 2 | 52µs | # spent 29µs (6+23) within IO::Compress::Gzip::Constants::BEGIN@114 which was called
# once (6µs+23µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 114 # spent 29µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@114
# spent 23µs making 1 call to constant::import |
| 115 | 3 | 32µs | 2 | 68µs | # spent 37µs (6+31) within IO::Compress::Gzip::Constants::BEGIN@115 which was called
# once (6µs+31µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 115 # spent 37µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@115
# spent 31µs making 1 call to constant::import |
| 116 | |||||
| 117 | # OS Names sourced from http://www.gzip.org/format.txt | ||||
| 118 | |||||
| 119 | 3 | 60µs | 2 | 58µs | # spent 33µs (7+26) within IO::Compress::Gzip::Constants::BEGIN@119 which was called
# once (7µs+26µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 119 # spent 33µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@119
# spent 26µs making 1 call to constant::import |
| 120 | 1 | 13µ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 | # spent 58µs (18+40) within IO::Compress::Gzip::Constants::BEGIN@143 which was called
# once (18µs+40µs) by IO::Uncompress::Gunzip::BEGIN@16 at line 145 # spent 27µs making 1 call to constant::import
# spent 13µs making 1 call to IO::Compress::Gzip::Constants::CORE:pack | ||||
| 144 | GZIP_ID1, GZIP_ID2, GZIP_CM_DEFLATED, GZIP_FLG_DEFAULT, | ||||
| 145 | 3 | 64µs | 1 | 58µs | GZIP_MTIME_DEFAULT, GZIP_XFL_DEFAULT, GZIP_OS_DEFAULT) ; # spent 58µs making 1 call to IO::Compress::Gzip::Constants::BEGIN@143 |
| 146 | |||||
| 147 | |||||
| 148 | 1 | 25µs | 1; | ||
# spent 13µs within IO::Compress::Gzip::Constants::CORE:pack which was called
# once (13µs+0s) by IO::Compress::Gzip::Constants::BEGIN@143 at line 143 of IO/Compress/Gzip/Constants.pm |