Filename | /usr/local/perls/perl-5.26.1/lib/5.26.1/darwin-2level/Compress/Raw/Bzip2.pm |
Statements | Executed 30 statements in 6.28ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 24µs | 28µs | BEGIN@4 | Compress::Raw::Bzip2::
1 | 1 | 1 | 15µs | 60µs | BEGIN@9 | Compress::Raw::Bzip2::
1 | 1 | 1 | 13µs | 20µs | BEGIN@5 | Compress::Raw::Bzip2::
1 | 1 | 1 | 12µs | 15µs | BEGIN@11 | Compress::Raw::Bzip2::
1 | 1 | 1 | 12µs | 36µs | BEGIN@49 | Compress::Raw::Bzip2::
1 | 1 | 1 | 12µs | 52µs | BEGIN@56 | Compress::Raw::Bzip2::
1 | 1 | 1 | 11µs | 47µs | BEGIN@58 | Compress::Raw::Bzip2::
1 | 1 | 1 | 10µs | 63µs | BEGIN@55 | Compress::Raw::Bzip2::
1 | 1 | 1 | 8µs | 45µs | BEGIN@57 | Compress::Raw::Bzip2::
0 | 0 | 0 | 0s | 0s | STORABLE_freeze | Compress::Raw::Bunzip2::
0 | 0 | 0 | 0s | 0s | STORABLE_thaw | Compress::Raw::Bunzip2::
0 | 0 | 0 | 0s | 0s | AUTOLOAD | Compress::Raw::Bzip2::
0 | 0 | 0 | 0s | 0s | STORABLE_freeze | Compress::Raw::Bzip2::
0 | 0 | 0 | 0s | 0s | STORABLE_thaw | Compress::Raw::Bzip2::
0 | 0 | 0 | 0s | 0s | __ANON__[:50] | Compress::Raw::Bzip2::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | |||||
2 | package Compress::Raw::Bzip2; | ||||
3 | |||||
4 | 2 | 45µs | 2 | 32µs | # spent 28µs (24+4) within Compress::Raw::Bzip2::BEGIN@4 which was called:
# once (24µs+4µs) by IO::Uncompress::Adapter::Bunzip2::BEGIN@9 at line 4 # spent 28µs making 1 call to Compress::Raw::Bzip2::BEGIN@4
# spent 4µs making 1 call to strict::import |
5 | 2 | 44µs | 2 | 27µs | # spent 20µs (13+7) within Compress::Raw::Bzip2::BEGIN@5 which was called:
# once (13µs+7µs) by IO::Uncompress::Adapter::Bunzip2::BEGIN@9 at line 5 # spent 20µs making 1 call to Compress::Raw::Bzip2::BEGIN@5
# spent 7µs making 1 call to warnings::import |
6 | |||||
7 | 1 | 10µs | require 5.006 ; | ||
8 | 1 | 1µs | require Exporter; | ||
9 | 2 | 36µs | 2 | 105µs | # spent 60µs (15+45) within Compress::Raw::Bzip2::BEGIN@9 which was called:
# once (15µs+45µs) by IO::Uncompress::Adapter::Bunzip2::BEGIN@9 at line 9 # spent 60µs making 1 call to Compress::Raw::Bzip2::BEGIN@9
# spent 45µs making 1 call to Exporter::import |
10 | |||||
11 | 2 | 207µs | 2 | 18µs | # spent 15µs (12+3) within Compress::Raw::Bzip2::BEGIN@11 which was called:
# once (12µs+3µs) by IO::Uncompress::Adapter::Bunzip2::BEGIN@9 at line 11 # spent 15µs making 1 call to Compress::Raw::Bzip2::BEGIN@11
# spent 3µs making 1 call to bytes::import |
12 | our ($VERSION, $XS_VERSION, @ISA, @EXPORT, $AUTOLOAD); | ||||
13 | |||||
14 | 1 | 0s | $VERSION = '2.074'; | ||
15 | 1 | 0s | $XS_VERSION = $VERSION; | ||
16 | 1 | 20µs | $VERSION = eval $VERSION; # spent 4µs executing statements in string eval | ||
17 | |||||
18 | 1 | 9µs | @ISA = qw(Exporter); | ||
19 | # Items to export into callers namespace by default. Note: do not export | ||||
20 | # names by default without a very good reason. Use EXPORT_OK instead. | ||||
21 | # Do not simply export all your public functions/methods/constants. | ||||
22 | 1 | 2µs | @EXPORT = qw( | ||
23 | BZ_RUN | ||||
24 | BZ_FLUSH | ||||
25 | BZ_FINISH | ||||
26 | |||||
27 | BZ_OK | ||||
28 | BZ_RUN_OK | ||||
29 | BZ_FLUSH_OK | ||||
30 | BZ_FINISH_OK | ||||
31 | BZ_STREAM_END | ||||
32 | BZ_SEQUENCE_ERROR | ||||
33 | BZ_PARAM_ERROR | ||||
34 | BZ_MEM_ERROR | ||||
35 | BZ_DATA_ERROR | ||||
36 | BZ_DATA_ERROR_MAGIC | ||||
37 | BZ_IO_ERROR | ||||
38 | BZ_UNEXPECTED_EOF | ||||
39 | BZ_OUTBUFF_FULL | ||||
40 | BZ_CONFIG_ERROR | ||||
41 | |||||
42 | ); | ||||
43 | |||||
44 | sub AUTOLOAD { | ||||
45 | my($constname); | ||||
46 | ($constname = $AUTOLOAD) =~ s/.*:://; | ||||
47 | my ($error, $val) = constant($constname); | ||||
48 | Carp::croak $error if $error; | ||||
49 | 2 | 107µs | 2 | 60µs | # spent 36µs (12+24) within Compress::Raw::Bzip2::BEGIN@49 which was called:
# once (12µs+24µs) by IO::Uncompress::Adapter::Bunzip2::BEGIN@9 at line 49 # spent 36µs making 1 call to Compress::Raw::Bzip2::BEGIN@49
# spent 24µs making 1 call to strict::unimport |
50 | *{$AUTOLOAD} = sub { $val }; | ||||
51 | goto &{$AUTOLOAD}; | ||||
52 | |||||
53 | } | ||||
54 | |||||
55 | 2 | 44µs | 2 | 116µs | # spent 63µs (10+53) within Compress::Raw::Bzip2::BEGIN@55 which was called:
# once (10µs+53µs) by IO::Uncompress::Adapter::Bunzip2::BEGIN@9 at line 55 # spent 63µs making 1 call to Compress::Raw::Bzip2::BEGIN@55
# spent 53µs making 1 call to constant::import |
56 | 2 | 46µs | 2 | 92µs | # spent 52µs (12+40) within Compress::Raw::Bzip2::BEGIN@56 which was called:
# once (12µs+40µs) by IO::Uncompress::Adapter::Bunzip2::BEGIN@9 at line 56 # spent 52µs making 1 call to Compress::Raw::Bzip2::BEGIN@56
# spent 40µs making 1 call to constant::import |
57 | 2 | 31µs | 2 | 82µs | # spent 45µs (8+37) within Compress::Raw::Bzip2::BEGIN@57 which was called:
# once (8µs+37µs) by IO::Uncompress::Adapter::Bunzip2::BEGIN@9 at line 57 # spent 45µs making 1 call to Compress::Raw::Bzip2::BEGIN@57
# spent 37µs making 1 call to constant::import |
58 | 2 | 308µs | 2 | 83µs | # spent 47µs (11+36) within Compress::Raw::Bzip2::BEGIN@58 which was called:
# once (11µs+36µs) by IO::Uncompress::Adapter::Bunzip2::BEGIN@9 at line 58 # spent 47µs making 1 call to Compress::Raw::Bzip2::BEGIN@58
# spent 36µs making 1 call to constant::import |
59 | |||||
60 | eval { | ||||
61 | 1 | 1µs | require XSLoader; | ||
62 | 1 | 5.34ms | 1 | 5.32ms | XSLoader::load('Compress::Raw::Bzip2', $XS_VERSION); # spent 5.32ms making 1 call to XSLoader::load |
63 | 1 | 2µs | 1; | ||
64 | } | ||||
65 | 1 | 0s | or do { | ||
66 | require DynaLoader; | ||||
67 | local @ISA = qw(DynaLoader); | ||||
68 | bootstrap Compress::Raw::Bzip2 $XS_VERSION ; | ||||
69 | }; | ||||
70 | |||||
71 | #sub Compress::Raw::Bzip2::new | ||||
72 | #{ | ||||
73 | # my $class = shift ; | ||||
74 | # my ($ptr, $status) = _new(@_); | ||||
75 | # return wantarray ? (undef, $status) : undef | ||||
76 | # unless $ptr ; | ||||
77 | # my $obj = bless [$ptr], $class ; | ||||
78 | # return wantarray ? ($obj, $status) : $obj; | ||||
79 | #} | ||||
80 | # | ||||
81 | #package Compress::Raw::Bunzip2 ; | ||||
82 | # | ||||
83 | #sub Compress::Raw::Bunzip2::new | ||||
84 | #{ | ||||
85 | # my $class = shift ; | ||||
86 | # my ($ptr, $status) = _new(@_); | ||||
87 | # return wantarray ? (undef, $status) : undef | ||||
88 | # unless $ptr ; | ||||
89 | # my $obj = bless [$ptr], $class ; | ||||
90 | # return wantarray ? ($obj, $status) : $obj; | ||||
91 | #} | ||||
92 | |||||
93 | sub Compress::Raw::Bzip2::STORABLE_freeze | ||||
94 | { | ||||
95 | my $type = ref shift; | ||||
96 | croak "Cannot freeze $type object\n"; | ||||
97 | } | ||||
98 | |||||
99 | sub Compress::Raw::Bzip2::STORABLE_thaw | ||||
100 | { | ||||
101 | my $type = ref shift; | ||||
102 | croak "Cannot thaw $type object\n"; | ||||
103 | } | ||||
104 | |||||
105 | sub Compress::Raw::Bunzip2::STORABLE_freeze | ||||
106 | { | ||||
107 | my $type = ref shift; | ||||
108 | croak "Cannot freeze $type object\n"; | ||||
109 | } | ||||
110 | |||||
111 | sub Compress::Raw::Bunzip2::STORABLE_thaw | ||||
112 | { | ||||
113 | my $type = ref shift; | ||||
114 | croak "Cannot thaw $type object\n"; | ||||
115 | } | ||||
116 | |||||
117 | |||||
118 | package Compress::Raw::Bzip2; | ||||
119 | |||||
120 | 1 | 25µs | 1; | ||
121 | |||||
122 | __END__ |