SST/macro
perf_counter.h
Go to the documentation of this file.
1 #ifndef PERF_COUNTER_H
2 #define PERF_COUNTER_H
3 
6 
7 namespace sstmac {
8 namespace sw {
9 
11 {
12  public:
13  virtual ~perf_counter() = default;
14 };
15 
18 {
19  public:
20  virtual ~perf_counter_model(){}
21 
22  virtual compute_event*
23  get_next_event() = 0;
24 
25  virtual perf_counter*
26  register_variable(void* ptr) = 0;
27 
28  virtual void
29  remove_variable(void* ptr) = 0;
30 
31 };
32 
34 
35 template <class T>
36 class perf_counter_impl :
37  public perf_counter
38 {
39  public:
40  T& counters() {
41  return counters_;
42  }
43 
44  private:
45  T counters_;
46 };
47 
48 }
49 }
50 
51 #endif // PERF_COUNTER_H
Input for processor models that use performance counter data.
Definition: compute_event.h:34
virtual ~perf_counter()=default
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
DeclareFactory(blas_kernel)