32 #ifdef SA_MEMORY_TOTAL
38 #ifdef SA_MEMORY_ACTIVE
41 #ifdef SA_MEMORY_INACTIVE
44 #ifdef SA_MEMORY_BUFFERS
47 #ifdef SA_MEMORY_SWAP_TOTAL
50 #ifdef SA_MEMORY_SWAP_FREE
53 #ifdef SA_MEMORY_SWAP_CACHED
56 #ifdef SA_MEMORY_WIRED
59 #ifdef SA_MEMORY_CACHED
62 #ifdef SA_MEMORY_DIRTY
65 #ifdef SA_MEMORY_EXECUTABLE
68 #ifdef SA_MEMORY_FILES
71 #ifdef SA_MEMORY_LOCKED
85 #ifdef SA_CLOSE_MEMORY
uint64_t free
Unused amount of memory.
Definition: memory.h:36
uint64_t files
Memory used by cached file data.
Definition: memory.h:69
int sa_open_memory(void) SA_EXPORT
uint64_t swap_free
Free amount of swap available.
Definition: memory.h:51
int sa_close_memory(void) SA_EXPORT
uint64_t wired
Memory not placed on any queue.
Definition: memory.h:57
uint64_t cached
Amount of cached memory.
Definition: memory.h:60
uint64_t active
Amount of memory in use or recently used.
Definition: memory.h:39
uint64_t swap_total
Total amount of swap present in the system.
Definition: memory.h:48
uint64_t buffers
Memory used for cached files. Useless for metrics nowadays.
Definition: memory.h:45
uint64_t executable
Memory used to hold executable data.
Definition: memory.h:66
int sa_get_memory(struct sa_memory *dst) SA_EXPORT SA_NONNULL
uint64_t dirty
Amount of memory waiting for been written to the disk.
Definition: memory.h:63
uint64_t swap_cached
Amount of swap that is cached.
Definition: memory.h:54
uint64_t inactive
Amount of memory that has not been recently used.
Definition: memory.h:42
uint64_t locked
Memory that can not be moved to swap.
Definition: memory.h:72
uint64_t total
Total amount of RAM available in the system.
Definition: memory.h:33