geopm  3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
OMPT.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2024 Intel Corporation
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef OMPT_HPP_INCLUDE
7 #define OMPT_HPP_INCLUDE
8 
9 #include <string>
10 
11 namespace geopm
12 {
13  class OMPT
14  {
15  public:
16  OMPT() = default;
17  virtual ~OMPT() = default;
18  static OMPT &ompt(void);
19  virtual bool is_enabled(void) = 0;
20  virtual void region_enter(const void *function_ptr) = 0;
21  virtual void region_exit(const void *function_ptr) = 0;
22  };
23 }
24 
25 #endif
Definition: OMPT.hpp:14
OMPT()=default
virtual void region_exit(const void *function_ptr)=0
virtual void region_enter(const void *function_ptr)=0
virtual ~OMPT()=default
static OMPT & ompt(void)
Definition: OMPT.cpp:52
virtual bool is_enabled(void)=0
Definition: Accumulator.cpp:12