CpuMemoryStats

Class used for getting used CPU percentage and used memory for the current process.

Constructors

this
this()

Constructor.

Members

Functions

collect
Stats collect()

Get's the cpu and memory stats for the current process.

Structs

Stats
struct Stats

Structure representing recorded stats.

Variables

current_stat
ProcVFS.ProcStat current_stat;

Curent recorded /proc/self/stat, used for generating stats, updated each cycle

current_uptime
ProcVFS.ProcUptime current_uptime;

Curent recorded uptime, used for generating stats, updated each cycle

Meta