|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
Per-process throughput counters and recent-message rings, kept in shared memory. More...
#include <ProcessMemory.h>
Public Member Functions | |
| std::string | toXML () |
| Serialize counters and recent messages as a <processstats> XML element. | |
Public Attributes | |
| uint64 | time |
| Timestamp of the last update (µs). | |
| uint64 | msgInCount |
| Total messages received. | |
| uint64 | msgInBytes |
| Total bytes received. | |
| char | recentInMsg [10 *DRAFTMSGSIZE] |
| Ring of the 10 most recent inbound message drafts. | |
| uint64 | msgOutCount |
| Total messages sent. | |
| uint64 | msgOutBytes |
| Total bytes sent. | |
| char | recentOutMsg [10 *DRAFTMSGSIZE] |
| Ring of the 10 most recent outbound message drafts. | |
| uint64 | procMemUsage |
| Current process memory footprint in bytes. | |
| uint64 | currentCPUTicks |
| Cumulative CPU ticks consumed. | |
| uint32 | recentInPos |
| uint32 | recentOutPos |
Per-process throughput counters and recent-message rings, kept in shared memory.
The recentInMsg/recentOutMsg buffers are rings of 10 DRAFTMSGSIZE-byte serialized message drafts, indexed by recentInPos/recentOutPos, used for live inspection tools.
Definition at line 63 of file ProcessMemory.h.
|
inline |
Serialize counters and recent messages as a <processstats> XML element.
Definition at line 77 of file ProcessMemory.h.
References DRAFTMSGSIZE, msgInBytes, msgInCount, msgOutBytes, msgOutCount, procMemUsage, recentInMsg, recentOutMsg, cmlabs::utils::StringFormat(), cmlabs::DataMessage::swapMessageData(), time, and cmlabs::DataMessage::toXML().
| uint64 cmlabs::ProcessStats::currentCPUTicks |
Cumulative CPU ticks consumed.
Definition at line 72 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats().
| uint64 cmlabs::ProcessStats::msgInBytes |
Total bytes received.
Definition at line 66 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats(), and toXML().
| uint64 cmlabs::ProcessStats::msgInCount |
Total messages received.
Definition at line 65 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats(), and toXML().
| uint64 cmlabs::ProcessStats::msgOutBytes |
Total bytes sent.
Definition at line 69 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats(), and toXML().
| uint64 cmlabs::ProcessStats::msgOutCount |
Total messages sent.
Definition at line 68 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::addLocalPerformanceStats(), and toXML().
| uint64 cmlabs::ProcessStats::procMemUsage |
Current process memory footprint in bytes.
Definition at line 71 of file ProcessMemory.h.
Referenced by toXML().
| char cmlabs::ProcessStats::recentInMsg[10 *DRAFTMSGSIZE] |
Ring of the 10 most recent inbound message drafts.
Definition at line 67 of file ProcessMemory.h.
Referenced by toXML().
| uint32 cmlabs::ProcessStats::recentInPos |
Definition at line 73 of file ProcessMemory.h.
| char cmlabs::ProcessStats::recentOutMsg[10 *DRAFTMSGSIZE] |
Ring of the 10 most recent outbound message drafts.
Definition at line 70 of file ProcessMemory.h.
Referenced by toXML().
| uint32 cmlabs::ProcessStats::recentOutPos |
Definition at line 74 of file ProcessMemory.h.
| uint64 cmlabs::ProcessStats::time |
Timestamp of the last update (µs).
Definition at line 64 of file ProcessMemory.h.
Referenced by cmlabs::ProcessMemory::addToProcessStats(), and toXML().