| 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; | |