12 #ifndef SST_CORE_STATAPI_STATOUTPUTJSON_H 13 #define SST_CORE_STATAPI_STATOUTPUTJSON_H 15 #include "sst/core/sst_types.h" 16 #include "sst/core/statapi/statoutput.h" 31 SST_ELI_REGISTER_DERIVED(
36 SST_ELI_ELEMENT_VERSION(1,0,0),
37 "Output to a JSON file")
39 SST_ELI_DOCUMENT_PARAMS(
40 {
"filepath",
"Filepath for the output file",
"./StatisticOutput.json"},
41 {
"outputsimtime",
"Whether to print the simulation time in the output",
"True" },
42 {
"outputrank",
"Whether to print the rank in the output",
"True" }
90 void outputField(fieldHandle_t fieldHandle, int32_t data)
override;
91 void outputField(fieldHandle_t fieldHandle, uint32_t data)
override;
92 void outputField(fieldHandle_t fieldHandle, int64_t data)
override;
93 void outputField(fieldHandle_t fieldHandle, uint64_t data)
override;
94 void outputField(fieldHandle_t fieldHandle,
float data)
override;
95 void outputField(fieldHandle_t fieldHandle,
double data)
override;
101 m_currentComponentName(
""),
103 m_processedAnyStats(
false),
115 std::string m_FilePath;
116 std::string m_currentComponentName;
117 std::string m_currentStatisticName;
118 std::string m_currentStatisticSubId;
119 std::string m_currentStatisticType;
120 bool m_outputSimTime;
124 bool m_processedAnyStats;
125 int m_curIndentLevel;
130 #endif // SST_CORE_STATAPI_STATOUTPUTJSON_H This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:42
The class for statistics output to a JSON formatted file.
Definition: statoutputjson.h:28
Forms the base class for statistics output generation within the SST core.
Definition: statoutput.h:52
void implStartOutputEntries(StatisticBase *statistic) override
Implementation function for the start of output.
Definition: statoutputjson.cc:99
Forms the base class for statistics gathering within SST.
Definition: statbase.h:49
virtual bool checkOutputParameters()=0
Have the Statistic Output check its parameters.
void implStopOutputEntries() override
Implementation function for the end of output.
Definition: statoutputjson.cc:151
Definition: statoutput.h:170
void outputField(fieldHandle_t fieldHandle, int32_t data) override
Implementation functions for output.
ImplementSerializable(SST::Statistics::StatisticOutputJSON) protected void startOfSimulation() override
Perform a check of provided parameters.
Definition: statoutputjson.cc:56
Parameter store.
Definition: params.h:63
Definition: elementinfo.h:44
void endOfSimulation() override
Indicate to Statistic Output that simulation ended.
Definition: statoutputjson.cc:77