MemorySnapshot struct
#include <gtopt/memory_monitor.hpp>
Snapshot of memory state at a point in time.
Public variables
- double available_mb
- Available system memory in MB.
- double process_rss_mb
- Process resident set size in MB.
- double process_swap_mb
- Process VmSwap in MB (pages on swap).
- double swap_total_mb
- System SwapTotal in MB.
- double swap_used_mb
- double total_mb
- Total system memory in MB.
- double vmstat_pswpin
- double vmstat_pswpout
Variable documentation
double gtopt:: MemorySnapshot:: swap_used_mb
System swap in use (SwapTotal-SwapFree) in MB
double gtopt:: MemorySnapshot:: vmstat_pswpin
Cumulative counts of swap-in/out pages since boot. Use the delta between two snapshots divided by the elapsed time to estimate the per-second swap I/O rate (thrash indicator).