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

Raw per-component performance counters sampled inside shared memory. More...

#include <MemoryManager.h>

Public Attributes

uint32 compID
 Component id these stats belong to.
uint16 spaceID
 Id of the space (process slot) hosting the component.
uint16 nodeID
 Id of the node the component runs on.
uint32 osID
 OS process id of the hosting process.
uint8 type
 Component type (Whiteboard, Catalog, Module, ...).
uint8 status
uint64 currentCPUTicks
 Cumulative CPU ticks consumed so far.
uint64 currentMemoryBytes
 Current memory footprint in bytes.
uint64 totalInputBytes
 Total bytes received as input messages.
uint64 totalInputCount
 Total number of input messages.
uint64 totalOutputBytes
 Total bytes posted as output messages.
uint64 totalOutputCount
 Total number of output messages.
uint64 runCount
 Number of triggered runs executed.
uint64 totalQueueBytes
 Bytes currently waiting in the component's queues.
uint32 totalQueueCount
 Messages currently waiting in the component's queues.
uint64 firstRunStartTime
 Timestamp (µs) of the very first run.
uint64 currentRunStartTime
 Timestamp (µs) the current/last run started.
uint64 totalCycleCount
 Total processing cycles across all runs.
uint64 totalRunCount
 Total runs across the component's lifetime.
uint32 migrationCount
 How many times the component migrated between spaces/nodes.

Detailed Description

Raw per-component performance counters sampled inside shared memory.

A snapshot of a component's resource usage and message throughput, written by the hosting process and read by the node for scheduling/monitoring decisions.

Warning
Shared-memory layout; see the file-level ABI warning before changing.

Definition at line 179 of file MemoryManager.h.

Member Data Documentation

◆ compID

uint32 cmlabs::PerfStats::compID

Component id these stats belong to.

Definition at line 180 of file MemoryManager.h.

◆ currentCPUTicks

uint64 cmlabs::PerfStats::currentCPUTicks

Cumulative CPU ticks consumed so far.

Definition at line 187 of file MemoryManager.h.

Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().

◆ currentMemoryBytes

uint64 cmlabs::PerfStats::currentMemoryBytes

Current memory footprint in bytes.

Definition at line 189 of file MemoryManager.h.

Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().

◆ currentRunStartTime

uint64 cmlabs::PerfStats::currentRunStartTime

Timestamp (µs) the current/last run started.

Definition at line 201 of file MemoryManager.h.

◆ firstRunStartTime

uint64 cmlabs::PerfStats::firstRunStartTime

Timestamp (µs) of the very first run.

Definition at line 200 of file MemoryManager.h.

Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().

◆ migrationCount

uint32 cmlabs::PerfStats::migrationCount

How many times the component migrated between spaces/nodes.

Definition at line 204 of file MemoryManager.h.

◆ nodeID

uint16 cmlabs::PerfStats::nodeID

Id of the node the component runs on.

Definition at line 182 of file MemoryManager.h.

Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().

◆ osID

uint32 cmlabs::PerfStats::osID

OS process id of the hosting process.

Definition at line 183 of file MemoryManager.h.

Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().

◆ runCount

uint64 cmlabs::PerfStats::runCount

Number of triggered runs executed.

Definition at line 196 of file MemoryManager.h.

◆ spaceID

uint16 cmlabs::PerfStats::spaceID

Id of the space (process slot) hosting the component.

Definition at line 181 of file MemoryManager.h.

Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().

◆ status

uint8 cmlabs::PerfStats::status

Definition at line 185 of file MemoryManager.h.

◆ totalCycleCount

uint64 cmlabs::PerfStats::totalCycleCount

Total processing cycles across all runs.

Definition at line 202 of file MemoryManager.h.

◆ totalInputBytes

uint64 cmlabs::PerfStats::totalInputBytes

Total bytes received as input messages.

Definition at line 191 of file MemoryManager.h.

Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().

◆ totalInputCount

uint64 cmlabs::PerfStats::totalInputCount

Total number of input messages.

Definition at line 192 of file MemoryManager.h.

Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().

◆ totalOutputBytes

uint64 cmlabs::PerfStats::totalOutputBytes

Total bytes posted as output messages.

Definition at line 193 of file MemoryManager.h.

Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().

◆ totalOutputCount

uint64 cmlabs::PerfStats::totalOutputCount

Total number of output messages.

Definition at line 194 of file MemoryManager.h.

Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().

◆ totalQueueBytes

uint64 cmlabs::PerfStats::totalQueueBytes

Bytes currently waiting in the component's queues.

Definition at line 197 of file MemoryManager.h.

Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().

◆ totalQueueCount

uint32 cmlabs::PerfStats::totalQueueCount

Messages currently waiting in the component's queues.

Definition at line 198 of file MemoryManager.h.

Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().

◆ totalRunCount

uint64 cmlabs::PerfStats::totalRunCount

Total runs across the component's lifetime.

Definition at line 203 of file MemoryManager.h.

◆ type

uint8 cmlabs::PerfStats::type

Component type (Whiteboard, Catalog, Module, ...).

Definition at line 184 of file MemoryManager.h.


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