Syntalos::ThreadUsageStats
Syntalos::ThreadUsageStats
Resource usage of a single OS thread (or a whole process).
#include <resourceinfo.h>
Public Functions
| Name | |
|---|---|
| double | cpuTimeSec() const peak resident set size of the whole process over its lifetime, if known |
| ThreadUsageStats | diff(const ThreadUsageStats & baseline) const Usage difference between this snapshot and an earlier baseline. |
Public Attributes
| Name | |
|---|---|
| int64_t | tid |
| double | userTimeSec |
| double | systemTimeSec |
| uint64_t | voluntaryCtxSwitches |
| uint64_t | involuntaryCtxSwitches |
| uint64_t | minorPageFaults |
| uint64_t | majorPageFaults |
| int64_t | peakRssKiB |
Public Functions Documentation
function cpuTimeSec
inline double cpuTimeSec() constpeak resident set size of the whole process over its lifetime, if known
function diff
ThreadUsageStats diff(
const ThreadUsageStats & baseline
) constUsage 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