line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Log::LTSV::Instance::Flatten; |
2
|
3
|
|
|
3
|
|
423
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
101
|
|
3
|
3
|
|
|
3
|
|
15
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
115
|
|
4
|
3
|
|
|
3
|
|
1941
|
use Hash::Flatten; |
|
3
|
|
|
|
|
11301
|
|
|
3
|
|
|
|
|
689
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
15
|
|
|
15
|
0
|
35
|
my $class = shift; |
8
|
|
|
|
|
|
|
|
9
|
15
|
|
|
|
|
106
|
my $flatten = Hash::Flatten->new({ |
10
|
|
|
|
|
|
|
HashDelimiter => '.', |
11
|
|
|
|
|
|
|
ArrayDelimiter => '.', |
12
|
|
|
|
|
|
|
}); |
13
|
15
|
|
|
|
|
475
|
my $self = bless { |
14
|
|
|
|
|
|
|
flatten => $flatten, |
15
|
|
|
|
|
|
|
}, $class; |
16
|
15
|
|
|
|
|
38
|
return $self; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
sub flatten { |
19
|
33
|
|
|
33
|
0
|
68644
|
my ($self, $prefix, $args) = @_; |
20
|
33
|
|
|
|
|
190
|
my $flat = $self->{flatten}->flatten({ $prefix => $args }); |
21
|
33
|
|
|
|
|
10611
|
return %{ $flat }; |
|
33
|
|
|
|
|
186
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |