line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::RedisTop::Component::Command; |
2
|
2
|
|
|
2
|
|
1385
|
use base 'App::RedisTop::Component'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
294
|
|
3
|
|
|
|
|
|
|
sub new { |
4
|
1
|
|
|
1
|
0
|
2
|
my $class = shift; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
|
|
27
|
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
|
|
|
|
|
|
|
1; |