blib/lib/App/RedisTop/Component/Slowlog.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 5 | 5 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 7 | 8 | 87.5 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package App::RedisTop::Component::Slowlog; | ||||||
2 | 2 | 2 | 1295 | use base 'App::RedisTop::Component'; | |||
2 | 3 | ||||||
2 | 220 | ||||||
3 | sub new { | ||||||
4 | 1 | 1 | 0 | 3 | my $class = shift; | ||
5 | |||||||
6 | 1 | 24 | my $self = bless { | ||||
7 | group => 'slowlog', | ||||||
8 | items => [ | ||||||
9 | { name => 'slowlog', stat_key => 'slowlog_len', }, | ||||||
10 | ], | ||||||
11 | width => 9, | ||||||
12 | unit => 1, | ||||||
13 | total => 1, | ||||||
14 | @_, | ||||||
15 | }, $class; | ||||||
16 | } | ||||||
17 | |||||||
18 | 1; |