File Coverage

blib/lib/App/RedisTop/Component/MemoryPer.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::MemoryPer;
2 2     2   1219 use base 'App::RedisTop::Component';
  2         5  
  2         207  
3             sub new {
4 1     1 0 3 my $class = shift;
5              
6 1         36 my $self = bless {
7             group => 'memper',
8             items => [
9             { name => 'use/max', stat_key => 'used_memory', denominator_key => 'maxmemory'},
10             ],
11             width => 8,
12             @_,
13             }, $class;
14             }
15              
16             1;