CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::utils::ProcessWaitInfo Struct Reference

Snapshot from ProbeProcessWait(): is the child (group) alive, is it blocked reading stdin, and how much CPU has the group burned so far (caller diffs successive samples). More...

#include <Utils.h>

Public Attributes

bool alive
 process (or group) still exists
bool waitExact
 true only when the OS reported the exact blocking syscall (Linux /proc/<pid>/syscall)
bool waitingStdin
 blocked reading fd 0 (exact on Linux; best-effort composite elsewhere)
uint64 cpuTimeMs
 cumulative user+sys CPU across the process group, in ms

Detailed Description

Snapshot from ProbeProcessWait(): is the child (group) alive, is it blocked reading stdin, and how much CPU has the group burned so far (caller diffs successive samples).

Definition at line 1379 of file Utils.h.

Member Data Documentation

◆ alive

bool cmlabs::utils::ProcessWaitInfo::alive

process (or group) still exists

Definition at line 1380 of file Utils.h.

Referenced by cmlabs::utils::ProbeProcessWait(), and cmlabs::utils::UnitTest_ProbeProcessWait().

◆ cpuTimeMs

uint64 cmlabs::utils::ProcessWaitInfo::cpuTimeMs

cumulative user+sys CPU across the process group, in ms

Definition at line 1383 of file Utils.h.

Referenced by cmlabs::utils::ProbeProcessWait(), and cmlabs::utils::UnitTest_ProbeProcessWait().

◆ waitExact

bool cmlabs::utils::ProcessWaitInfo::waitExact

true only when the OS reported the exact blocking syscall (Linux /proc/<pid>/syscall)

Definition at line 1381 of file Utils.h.

Referenced by cmlabs::utils::ProbeProcessWait(), and cmlabs::utils::UnitTest_ProbeProcessWait().

◆ waitingStdin

bool cmlabs::utils::ProcessWaitInfo::waitingStdin

blocked reading fd 0 (exact on Linux; best-effort composite elsewhere)

Definition at line 1382 of file Utils.h.

Referenced by cmlabs::utils::ProbeProcessWait(), and cmlabs::utils::UnitTest_ProbeProcessWait().


The documentation for this struct was generated from the following file:
  • /home/ubuntu/c/partner/psyclone2/CMSDK/include/Utils.h