Syntalos::ThreadUsageStats

Syntalos::ThreadUsageStats

Syntalos::ThreadUsageStats

Resource usage of a single OS thread (or a whole process).

#include <resourceinfo.h>

Public Functions

Name
doublecpuTimeSec() const
peak resident set size of the whole process over its lifetime, if known
ThreadUsageStatsdiff(const ThreadUsageStats & baseline) const
Usage difference between this snapshot and an earlier baseline.

Public Attributes

Name
int64_ttid
doubleuserTimeSec
doublesystemTimeSec
uint64_tvoluntaryCtxSwitches
uint64_tinvoluntaryCtxSwitches
uint64_tminorPageFaults
uint64_tmajorPageFaults
int64_tpeakRssKiB

Public Functions Documentation

function cpuTimeSec

inline double cpuTimeSec() const

peak resident set size of the whole process over its lifetime, if known

function diff

ThreadUsageStats diff(
    const ThreadUsageStats & baseline
) const

Usage difference between this snapshot and an earlier baseline.

Public Attributes Documentation

variable tid

int64_t tid = 0;

variable userTimeSec

double userTimeSec = 0.0;

variable systemTimeSec

double systemTimeSec = 0.0;

variable voluntaryCtxSwitches

uint64_t voluntaryCtxSwitches = 0;

variable involuntaryCtxSwitches

uint64_t involuntaryCtxSwitches = 0;

variable minorPageFaults

uint64_t minorPageFaults = 0;

variable majorPageFaults

uint64_t majorPageFaults = 0;

variable peakRssKiB

int64_t peakRssKiB = -1;

Updated on 2026-11-26 at 18:54:14 +0000