XGC1
perf_monitor.hpp
Go to the documentation of this file.
1 #ifndef PERF_MONITOR_HPP
2 #define PERF_MONITOR_HPP
3 
4 #include "NamelistReader.hpp"
5 #include "step_trigger.hpp"
6 
7 class PerfMonitor{
8 
10 
11  public:
12 
13  // enum for Fortran perf monitor
14  enum{
15  INIT_ = 1,
17  RESTART_WRITE_ = 3
18  };
19 
21 
22  bool is_triggered(int step) const;
23 
24  void flush(int step);
25 
26  void finish();
27 };
28 
29 #endif
Definition: NamelistReader.hpp:193
Definition: perf_monitor.hpp:7
void finish()
Definition: perf_monitor.cpp:47
bool is_triggered(int step) const
Definition: perf_monitor.cpp:31
void flush(int step)
Definition: perf_monitor.cpp:35
@ INIT_
Definition: perf_monitor.hpp:15
@ RESTART_WRITE_
Definition: perf_monitor.hpp:17
@ MAIN_LOOP_
Definition: perf_monitor.hpp:16
PerfMonitor(NLReader::NamelistReader &nlr)
Definition: perf_monitor.cpp:14
StepTrigger step_trigger
Definition: perf_monitor.hpp:9
Definition: step_trigger.hpp:4