-
-
Notifications
You must be signed in to change notification settings - Fork 583
Expand file tree
/
Copy pathMemoryMeter.h
More file actions
22 lines (18 loc) · 682 Bytes
/
MemoryMeter.h
File metadata and controls
22 lines (18 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef HEADER_MemoryMeter
#define HEADER_MemoryMeter
/*
htop - MemoryMeter.h
(C) 2004-2011 Hisham H. Muhammad
(C) 2025 htop dev team
Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
#include "Meter.h"
typedef struct MemoryClass_s {
const char *label; // e.g. "wired", "shared", "compressed" - platform-specific memory classe names
bool countsAsUsed; // memory class counts as "used" memory
bool countsAsCache; // memory class reclaimed under pressure (displayed with "show cached memory")
ColorElements color; // one of the MEMORY CRT color values
} MemoryClass;
extern const MeterClass MemoryMeter_class;
#endif