RedisTop/Component/Command.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 0.0% 0 / 1 totaltotal 88.8% 8 / 9 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
new
1.0
CRAP 1.0
« RedisTop/Component/CPU.pm ↑ Summary RedisTop/Component/Connection.pm »
1 package App::RedisTop::Component::Command;
2 2 ▶use base 'App::RedisTop::Component';
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
4 1 my $class = shift;
5  
6 1 my $self = bless {
7 group => 'command',
8 items => [
9 { name => 'total/s', stat_key => 'total_commands_processed', diff => 1 },
10 { name => 'hits/s', stat_key => 'keyspace_hits', diff => 1 },
11 { name => 'misses/s', stat_key => 'keyspace_misses', diff => 1 },
12 ],
13 width => 8,
14 unit => 1,
15 total => 1,
16 @_,
17 }, $class;
18 }
19  
20 2 1;
« RedisTop/Component/CPU.pm ↑ Summary RedisTop/Component/Connection.pm »