line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Log::LTSV::Instance::Flatten; |
2
|
1
|
|
|
1
|
|
591
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
4
|
1
|
|
|
1
|
|
868
|
use Hash::Flatten; |
|
1
|
|
|
|
|
7302
|
|
|
1
|
|
|
|
|
343
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
1
|
|
|
1
|
0
|
13
|
my $class = shift; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
|
|
10
|
my $flatten = Hash::Flatten->new({ |
10
|
|
|
|
|
|
|
HashDelimiter => '.', |
11
|
|
|
|
|
|
|
ArrayDelimiter => '.', |
12
|
|
|
|
|
|
|
}); |
13
|
1
|
|
|
|
|
51
|
my $self = bless { |
14
|
|
|
|
|
|
|
flatten => $flatten, |
15
|
|
|
|
|
|
|
}, $class; |
16
|
1
|
|
|
|
|
4
|
return $self; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
sub flatten { |
19
|
17
|
|
|
17
|
0
|
67728
|
my ($self, $prefix, $args) = @_; |
20
|
17
|
|
|
|
|
134
|
my $flat = $self->{flatten}->flatten({ $prefix => $args }); |
21
|
17
|
|
|
|
|
6808
|
return %{ $flat }; |
|
17
|
|
|
|
|
110
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |