| 1 | package App::RedisTop::Component::Memory; | ||
| 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 => 'mem', | ||
| 8 | items => [ | ||
| 9 | { name => 'use', stat_key => 'used_memory', }, | ||
| 10 | { name => 'rss', stat_key => 'used_memory_rss', }, | ||
| 11 | { name => 'frag', stat_key => 'mem_fragmentation_ratio', }, | ||
| 12 | ], | ||
| 13 | width => 7, | ||
| 14 | unit => 1, | ||
| 15 | @_, | ||
| 16 | }, $class; | ||
| 17 | } | ||
| 18 | |||
| 19 | 2 | 1; | |