12#ifndef SST_CORE_CORETEST_OVERHEADMEASURE_H
13#define SST_CORE_CORETEST_OVERHEADMEASURE_H
15#include "sst/core/component.h"
16#include "sst/core/link.h"
17#include "sst/core/rng/marsaglia.h"
21namespace SST::CoreTestOverhead {
27 SST_ELI_REGISTER_COMPONENT(
31 SST_ELI_ELEMENT_VERSION(1,0,0),
32 "Element to measure overheads in the ConfigGraph and BaseComponent base class",
33 COMPONENT_CATEGORY_UNCATEGORIZED
36 SST_ELI_DOCUMENT_PARAMS(
37 {
"id",
"ID of component",
"" }
41 SST_ELI_DOCUMENT_STATISTICS()
43 SST_ELI_DOCUMENT_PORTS(
44 {
"left_%d",
"dth left port ", {
"NullEvent",
"" } },
45 {
"right_%d",
"dth right port ", {
"NullEvent",
"" } }
49 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
52 OverheadMeasure(SST::ComponentId_t
id,
SST::Params& params);
53 OverheadMeasure() =
default;
54 ~OverheadMeasure() =
default;
56 void init(
unsigned int UNUSED(phase))
override {}
58 void complete(
unsigned int UNUSED(phase))
override {}
66 bool clockTic(Cycle_t cycle);
68 std::vector<Link*> links_;
Main component object for the simulation.
Definition component.h:32
void setup() override
Called after all components have been constructed and initialization has completed,...
Definition coreTest_OverheadMeasure.h:57
void init(unsigned int UNUSED(phase)) override
Used during the init phase.
Definition coreTest_OverheadMeasure.h:56
void finish() override
Called after complete phase, but before objects are destroyed.
Definition coreTest_OverheadMeasure.h:59
void complete(unsigned int UNUSED(phase)) override
Used during the complete phase after the end of simulation.
Definition coreTest_OverheadMeasure.h:58
Base class for Events - Items sent across links to communicate between components.
Definition event.h:41
Parameter store.
Definition params.h:65