void LoggingTracer::dumpThreadSummary(const SystemState &system) { for (Node *node : system.getNodes()) { if (!node->isProcessorNode()) continue; for (Core *core : static_cast<ProcessorNode*>(node)->getCores()) { dumpThreadSummary(*core); } } }
static inline void addToCoreMap(std::map<std::pair<unsigned, unsigned>,Core*> &coreMap, SystemState &system) { for (Node *node : system.getNodes()) { if (!node->isProcessorNode()) continue; addToCoreMap(coreMap, static_cast<ProcessorNode&>(*node)); } }
static void connectWaveformTracer(SystemState &system, WaveformTracer &waveformTracer) { for (Node *node : system.getNodes()) { if (!node->isProcessorNode()) continue; for (Core *core : static_cast<ProcessorNode*>(node)->getCores()) { connectWaveformTracer(*core, waveformTracer); } } waveformTracer.finalizePorts(); }