line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Stacktrace::Configurable::Frame; |
2
|
|
|
|
|
|
|
|
3
|
13
|
|
|
13
|
|
68
|
use strict; |
|
13
|
|
|
|
|
25
|
|
|
13
|
|
|
|
|
398
|
|
4
|
13
|
|
|
13
|
|
192
|
use 5.01; |
|
13
|
|
|
|
|
64
|
|
|
13
|
|
|
|
|
2494
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our @attr; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
223
|
|
|
223
|
0
|
333
|
my $class=shift; |
11
|
223
|
|
33
|
|
|
735
|
$class=ref($class)||$class; |
12
|
|
|
|
|
|
|
|
13
|
223
|
|
|
|
|
565
|
my $I=bless {}=>$class; |
14
|
|
|
|
|
|
|
|
15
|
223
|
|
|
|
|
349
|
@{$I}{@attr} = @_; |
|
223
|
|
|
|
|
2872
|
|
16
|
|
|
|
|
|
|
|
17
|
223
|
|
|
|
|
1225
|
return $I; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
BEGIN { |
21
|
13
|
|
|
13
|
|
70
|
@attr=(qw/package filename line subroutine hasargs |
22
|
|
|
|
|
|
|
wantarray evaltext is_require hints bitmask |
23
|
|
|
|
|
|
|
hinthash nr args/); |
24
|
13
|
|
|
|
|
32
|
for (@attr) { |
25
|
169
|
|
|
|
|
194
|
my $attr=$_; |
26
|
13
|
|
|
13
|
|
68
|
no strict 'refs'; |
|
13
|
|
|
|
|
22
|
|
|
13
|
|
|
|
|
1477
|
|
27
|
169
|
|
|
|
|
1497
|
*{__PACKAGE__.'::'.$attr}=sub : lvalue { |
28
|
1
|
|
|
1
|
|
4667
|
my $I=$_[0]; |
29
|
1
|
50
|
|
|
|
7
|
$I->{$attr}=$_[1] if @_>1; |
30
|
1
|
|
|
|
|
7
|
$I->{$attr}; |
31
|
169
|
|
|
|
|
472
|
}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
__END__ |