12 #ifndef SST_CORE_TIMING_OUTPUT_H 13 #define SST_CORE_TIMING_OUTPUT_H 15 #include "sst/core/output.h" 16 #include "sst/core/unitAlgebra.h" 17 #include "sst/core/util/filesystem.h" 41 GLOBAL_MAX_SYNC_DATA_SIZE,
42 GLOBAL_SYNC_DATA_SIZE,
49 GLOBAL_ACTIVE_ACTIVITIES,
50 GLOBAL_CURRENT_TV_DEPTH,
56 const std::map<Key, const char*> key2cstr = {
57 { LOCAL_MAX_RSS,
"local_max_rss" },
58 { GLOBAL_MAX_RSS,
"global_max_rss" },
59 { LOCAL_MAX_PF,
"local_max_pf" },
60 { GLOBAL_PF,
"global_pf" },
61 { GLOBAL_MAX_IO_IN,
"global_max_io_in" },
62 { GLOBAL_MAX_IO_OUT,
"global_max_io_out" },
63 { GLOBAL_MAX_SYNC_DATA_SIZE,
"global_max_sync_data_size" },
64 { GLOBAL_SYNC_DATA_SIZE,
"global_sync_data_size" },
65 { MAX_MEMPOOL_SIZE,
"max_mempool_size" },
66 { GLOBAL_MEMPOOL_SIZE,
"global_mempool_size" },
67 { MAX_BUILD_TIME,
"max_build_time" },
68 { MAX_RUN_TIME,
"max_run_time" },
69 { MAX_TOTAL_TIME,
"max_total_time" },
70 { SIMULATED_TIME_UA,
"simulated_time_ua" },
71 { GLOBAL_ACTIVE_ACTIVITIES,
"global_active_activities" },
72 { GLOBAL_CURRENT_TV_DEPTH,
"global_current_tv_depth" },
73 { GLOBAL_MAX_TV_DEPTH,
"global_max_tv_depth" },
75 { THREADS,
"threads" },
78 TimingOutput(
const SST::Output& output,
int print_verbosity);
79 virtual ~TimingOutput();
80 void setJSON(
const std::string& path);
85 void set(
Key key, uint64_t v);
86 void set(
Key key, UnitAlgebra v);
87 void set(
Key key,
double v);
94 std::map<Key, uint64_t> u64map_ = {};
95 std::map<Key, UnitAlgebra> uamap_ = {};
96 std::map<Key, double> dmap_ = {};
97 FILE* outputFile =
nullptr;
102 #endif // SST_CORE_TIMING_OUTPUT_H Output object provides consistent method for outputting data to stdout, stderr and/or sst debug file...
Definition: output.h:57
Key
Timing Parameters.
Definition: timingOutput.h:34
Outputs configuration data to a specified file path.
Definition: timingOutput.h:29