|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
Legacy per-component throughput counters (DataMessageHeader-based rings). More...
#include <ComponentData.h>
Public Member Functions | |
| std::string | toXML () |
| Serialize counters and recent messages as a <componentstats> XML element. | |
Public Attributes | |
| uint64 | time |
| Timestamp of the last update (µs). | |
| uint64 | msgInCount |
| Total messages received. | |
| uint64 | msgInBytes |
| Total bytes received. | |
| DataMessageHeader | recentInMsg [10] |
| uint64 | msgOutCount |
| Total messages posted. | |
| uint64 | msgOutBytes |
| Total bytes posted. | |
| DataMessageHeader | recentOutMsg [10] |
| uint64 | runCount |
| Total runs. | |
| uint64 | runUserTime |
| uint64 | runKernelTime |
| char | recentInMsg [10 *DRAFTMSGSIZE] |
| Ring of the 10 most recent inbound message drafts. | |
| char | recentOutMsg [10 *DRAFTMSGSIZE] |
| Ring of the 10 most recent outbound message drafts. | |
| uint64 | firstRunStartTime |
| Timestamp of the first run (µs). | |
| uint64 | currentRunStartTime |
| Timestamp the current/last run started (µs). | |
| uint64 | cycleCount |
| Total processing cycles. | |
| uint32 | migrationCount |
| Times this component has migrated. | |
| uint64 | usageCPUTicks |
| Cumulative CPU ticks consumed. | |
| uint32 | recentInPos |
| uint32 | recentOutPos |
Legacy per-component throughput counters (DataMessageHeader-based rings).
Per-component throughput counters and recent-message rings (in shared memory).
Same ring scheme as ProcessStats: 10 DRAFTMSGSIZE-byte draft slots per direction.
Definition at line 52 of file ComponentData.h.
|
inline |
Serialize counters and recent messages as a <componentstats> XML element.
Definition at line 98 of file ComponentMemory.h.
References DRAFTMSGSIZE, msgInBytes, msgInCount, msgOutBytes, msgOutCount, recentInMsg, recentOutMsg, runCount, cmlabs::utils::StringFormat(), cmlabs::DataMessage::swapMessageData(), time, and cmlabs::DataMessage::toXML().
| uint64 cmlabs::ComponentStats::currentRunStartTime |
Timestamp the current/last run started (µs).
Definition at line 90 of file ComponentMemory.h.
Referenced by cmlabs::ComponentMemory::addComponentStats(), and cmlabs::ComponentMemory::addLocalPerformanceStats().
| uint64 cmlabs::ComponentStats::cycleCount |
Total processing cycles.
Definition at line 91 of file ComponentMemory.h.
Referenced by cmlabs::ComponentMemory::addComponentStats(), cmlabs::ComponentMemory::addLocalPerformanceStats(), and cmlabs::ComponentMemory::UnitTest().
| uint64 cmlabs::ComponentStats::firstRunStartTime |
Timestamp of the first run (µs).
Definition at line 89 of file ComponentMemory.h.
Referenced by cmlabs::ComponentMemory::addComponentStats(), and cmlabs::ComponentMemory::addLocalPerformanceStats().
| uint32 cmlabs::ComponentStats::migrationCount |
Times this component has migrated.
Definition at line 93 of file ComponentMemory.h.
Referenced by cmlabs::ComponentMemory::addLocalPerformanceStats(), and cmlabs::ComponentMemory::setComponentData().
| uint64 cmlabs::ComponentStats::msgInBytes |
Total bytes received.
Definition at line 55 of file ComponentData.h.
Referenced by cmlabs::ComponentMemory::addComponentStats(), cmlabs::ComponentMemory::addLocalPerformanceStats(), toXML(), and cmlabs::ComponentMemory::UnitTest().
| uint64 cmlabs::ComponentStats::msgInCount |
Total messages received.
Definition at line 54 of file ComponentData.h.
Referenced by cmlabs::ComponentMemory::addComponentStats(), cmlabs::ComponentMemory::addLocalPerformanceStats(), toXML(), and cmlabs::ComponentMemory::UnitTest().
| uint64 cmlabs::ComponentStats::msgOutBytes |
Total bytes posted.
Definition at line 58 of file ComponentData.h.
Referenced by cmlabs::ComponentMemory::addComponentStats(), cmlabs::ComponentMemory::addLocalPerformanceStats(), toXML(), and cmlabs::ComponentMemory::UnitTest().
| uint64 cmlabs::ComponentStats::msgOutCount |
Total messages posted.
Definition at line 57 of file ComponentData.h.
Referenced by cmlabs::ComponentMemory::addComponentStats(), cmlabs::ComponentMemory::addLocalPerformanceStats(), toXML(), and cmlabs::ComponentMemory::UnitTest().
| char cmlabs::ComponentStats::recentInMsg[10 *DRAFTMSGSIZE] |
Ring of the 10 most recent inbound message drafts.
Definition at line 85 of file ComponentMemory.h.
| DataMessageHeader cmlabs::ComponentStats::recentInMsg[10] |
Definition at line 56 of file ComponentData.h.
Referenced by cmlabs::ComponentMemory::addComponentStats(), toXML(), and cmlabs::ComponentMemory::UnitTest().
| uint32 cmlabs::ComponentStats::recentInPos |
Definition at line 95 of file ComponentMemory.h.
Referenced by cmlabs::ComponentMemory::addComponentStats().
| char cmlabs::ComponentStats::recentOutMsg[10 *DRAFTMSGSIZE] |
Ring of the 10 most recent outbound message drafts.
Definition at line 88 of file ComponentMemory.h.
| DataMessageHeader cmlabs::ComponentStats::recentOutMsg[10] |
Definition at line 59 of file ComponentData.h.
Referenced by cmlabs::ComponentMemory::addComponentStats(), and toXML().
| uint32 cmlabs::ComponentStats::recentOutPos |
Definition at line 96 of file ComponentMemory.h.
Referenced by cmlabs::ComponentMemory::addComponentStats().
| uint64 cmlabs::ComponentStats::runCount |
Total runs.
Definition at line 60 of file ComponentData.h.
Referenced by cmlabs::ComponentMemory::addComponentStats(), cmlabs::ComponentMemory::addLocalPerformanceStats(), toXML(), and cmlabs::ComponentMemory::UnitTest().
| uint64 cmlabs::ComponentStats::runKernelTime |
Definition at line 62 of file ComponentData.h.
| uint64 cmlabs::ComponentStats::runUserTime |
Definition at line 61 of file ComponentData.h.
| uint64 cmlabs::ComponentStats::time |
Timestamp of the last update (µs).
Definition at line 53 of file ComponentData.h.
Referenced by cmlabs::ComponentData::AddComponentStats(), cmlabs::ComponentMemory::addComponentStats(), and toXML().
| uint64 cmlabs::ComponentStats::usageCPUTicks |
Cumulative CPU ticks consumed.
Definition at line 94 of file ComponentMemory.h.
Referenced by cmlabs::ComponentMemory::addComponentStats(), cmlabs::ComponentMemory::addLocalPerformanceStats(), and cmlabs::ComponentMemory::UnitTest().