|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
One process (space) record in the shared process table. More...
#include <ProcessMemory.h>
Public Member Functions | |
| std::string | toXML () |
| Serialize this record (including stats) as a <space> XML element. | |
Public Attributes | |
| uint32 | id |
| Process id; corresponds to the index in the table. | |
| uint16 | nodeID |
| Id of the node this process belongs to. | |
| uint64 | createdTime |
| Creation timestamp (µs). | |
| uint64 | lastseen |
| Last heartbeat/status update (µs); staleness implies a crashed space. | |
| uint8 | status |
| PSYPROC_* lifecycle status. | |
| uint32 | osID |
| OS process id (pid). | |
| uint8 | type |
| 0: normal space process, 1: runs inside the node process. | |
| char | name [MAXKEYNAMELEN+1] |
| Process (space) name. | |
| char | commandline [MAXCOMMANDLINELEN+1] |
| Command line used to launch the process. | |
| ProcessStats | stats |
| Throughput counters and recent-message rings. | |
| AveragePerfStats | perfStats |
| Windowed performance averages. | |
| uint16 | cmdQID |
| Queue index of this process's command queue. | |
| uint16 | msgQID |
| Queue index of this process's data-message queue. | |
| uint16 | sigQID |
| Queue index of this process's signal queue. | |
| uint16 | reqQID |
| Queue index of this process's request queue. | |
One process (space) record in the shared process table.
The four *QID fields index into ProcessMemoryStruct::qIndex to locate this process's command/message/signal/request queues within the segment.
Definition at line 113 of file ProcessMemory.h.
|
inline |
Serialize this record (including stats) as a <space> XML element.
Definition at line 132 of file ProcessMemory.h.
References commandline, createdTime, cmlabs::html::EncodeHTML(), lastseen, name, nodeID, osID, perfStats, stats, status, and cmlabs::utils::StringFormat().
| uint16 cmlabs::ProcessInfoStruct::cmdQID |
Queue index of this process's command queue.
Definition at line 126 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::create(), and cmlabs::ProcessMemory::createNewProcess().
| char cmlabs::ProcessInfoStruct::commandline[MAXCOMMANDLINELEN+1] |
Command line used to launch the process.
Definition at line 123 of file ProcessMemory.h.
Referenced by toXML().
| uint64 cmlabs::ProcessInfoStruct::createdTime |
Creation timestamp (µs).
Definition at line 116 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats(), cmlabs::ProcessMemory::checkProcessHeartbeats(), cmlabs::ProcessMemory::create(), cmlabs::ProcessMemory::createNewProcess(), cmlabs::ProcessMemory::getAllProcesses(), cmlabs::ProcessMemory::getProcessPerfStats(), and toXML().
| uint32 cmlabs::ProcessInfoStruct::id |
Process id; corresponds to the index in the table.
Definition at line 114 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats(), and cmlabs::ProcessMemory::createNewProcess().
| uint64 cmlabs::ProcessInfoStruct::lastseen |
Last heartbeat/status update (µs); staleness implies a crashed space.
Definition at line 117 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::checkProcessHeartbeats(), cmlabs::ProcessMemory::create(), cmlabs::ProcessMemory::createNewProcess(), and toXML().
| uint16 cmlabs::ProcessInfoStruct::msgQID |
Queue index of this process's data-message queue.
Definition at line 127 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::create(), and cmlabs::ProcessMemory::createNewProcess().
| char cmlabs::ProcessInfoStruct::name[MAXKEYNAMELEN+1] |
Process (space) name.
Definition at line 122 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::create(), cmlabs::ProcessMemory::createNewProcess(), and toXML().
| uint16 cmlabs::ProcessInfoStruct::nodeID |
Id of the node this process belongs to.
Definition at line 115 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats(), cmlabs::ProcessMemory::checkProcessHeartbeats(), cmlabs::ProcessMemory::create(), cmlabs::ProcessMemory::createNewProcess(), cmlabs::ProcessMemory::getAllProcesses(), and toXML().
| uint32 cmlabs::ProcessInfoStruct::osID |
OS process id (pid).
Definition at line 119 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats(), and toXML().
| AveragePerfStats cmlabs::ProcessInfoStruct::perfStats |
Windowed performance averages.
Definition at line 125 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::getProcessPerfStats(), and toXML().
| uint16 cmlabs::ProcessInfoStruct::reqQID |
Queue index of this process's request queue.
Definition at line 129 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::create(), and cmlabs::ProcessMemory::createNewProcess().
| uint16 cmlabs::ProcessInfoStruct::sigQID |
Queue index of this process's signal queue.
Definition at line 128 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::create(), and cmlabs::ProcessMemory::createNewProcess().
| ProcessStats cmlabs::ProcessInfoStruct::stats |
Throughput counters and recent-message rings.
Definition at line 124 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats(), cmlabs::ProcessMemory::addToProcessStats(), and toXML().
| uint8 cmlabs::ProcessInfoStruct::status |
PSYPROC_* lifecycle status.
Definition at line 118 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::checkProcessHeartbeats(), cmlabs::ProcessMemory::create(), cmlabs::ProcessMemory::createNewProcess(), cmlabs::ProcessMemory::setProcessStatus(), and toXML().
| uint8 cmlabs::ProcessInfoStruct::type |
0: normal space process, 1: runs inside the node process.
Definition at line 120 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().