12 #ifndef _H_SST_CORE_STATISTICS_OUTPUT_JSON
13 #define _H_SST_CORE_STATISTICS_OUTPUT_JSON
15 #include "sst/core/sst_types.h"
17 #include "sst/core/statapi/statoutput.h"
20 namespace Statistics {
35 SST_ELI_ELEMENT_VERSION(1,0,0),
36 "Output to a JSON file")
83 void outputField(fieldHandle_t fieldHandle, int32_t data)
override;
84 void outputField(fieldHandle_t fieldHandle, uint32_t data)
override;
85 void outputField(fieldHandle_t fieldHandle, int64_t data)
override;
86 void outputField(fieldHandle_t fieldHandle, uint64_t data)
override;
87 void outputField(fieldHandle_t fieldHandle,
float data)
override;
88 void outputField(fieldHandle_t fieldHandle,
double data)
override;
101 std::string m_FilePath;
102 std::string m_currentComponentName;
103 std::string m_currentStatisticName;
104 std::string m_currentStatisticSubId;
105 std::string m_currentStatisticType;
106 bool m_outputSimTime;
110 bool m_processedAnyStats;
111 int m_curIndentLevel;
The class for statistics output to a JSON formatted file.
Definition: statoutputjson.h:27
void printUsage() override
Print out usage for this Statistic Output.
Definition: statoutputjson.cc:68
Forms the base class for statistics output generation within the SST core.
Definition: statoutput.h:49
void implStartOutputEntries(StatisticBase *statistic) override
Implementation function for the start of output.
Definition: statoutputjson.cc:122
Forms the base class for statistics gathering within SST.
Definition: statbase.h:64
SST_ELI_REGISTER_DERIVED(StatisticOutput, StatisticOutputJSON,"sst","statoutputjson", SST_ELI_ELEMENT_VERSION(1, 0, 0),"Output to a JSON file") StatisticOutputJSON(Params &outputParameters)
Construct a StatOutputJSON.
void implStopOutputEntries() override
Implementation function for the end of output.
Definition: statoutputjson.cc:169
Definition: statoutput.h:144
void outputField(fieldHandle_t fieldHandle, int32_t data) override
Implementation functions for output.
void startOfSimulation() override
Indicate to Statistic Output that simulation started.
Definition: statoutputjson.cc:80
bool checkOutputParameters() override
Perform a check of provided parameters.
Definition: statoutputjson.cc:36
Parameter store.
Definition: params.h:44
void endOfSimulation() override
Indicate to Statistic Output that simulation ended.
Definition: statoutputjson.cc:101