CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
ProcMemInfo Struct Reference

How much memory one process is using. More...

#include <sysinfo.h>

Data Fields

flags_t valid
 ProcMemInfoValid flags naming the fields that were reported.
 
uint64 resident
 Bytes of the process currently held in memory.
 
uint64 peakResident
 The largest that has ever been.
 
uint64 virtualSize
 Bytes of address space the process has reserved.
 
uint64 peakVirtualSize
 The largest that has ever been. Linux only.
 
uint64 privateSize
 Bytes of memory the process has asked for and nobody else can share.
 
uint64 swapped
 Bytes of the process paged out to swap. Linux only.
 

Detailed Description

How much memory one process is using.

Definition at line 227 of file sysinfo.h.

Field Documentation

◆ peakResident

uint64 ProcMemInfo::peakResident

The largest that has ever been.

FreeBSD samples this periodically rather than tracking it exactly, so there it is a lower bound rather than an exact figure.

Definition at line 236 of file sysinfo.h.

◆ privateSize

uint64 ProcMemInfo::privateSize

Bytes of memory the process has asked for and nobody else can share.

Windows only.

Definition at line 248 of file sysinfo.h.

◆ virtualSize

uint64 ProcMemInfo::virtualSize

Bytes of address space the process has reserved.

Usually much larger than what is in use, and not reported on Windows.

Definition at line 241 of file sysinfo.h.


The documentation for this struct was generated from the following file: