geopm
3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
libgeopm
src
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
geopm::OMPT
Definition:
OMPT.hpp:14
geopm::OMPT::OMPT
OMPT()=default
geopm::OMPT::region_exit
virtual void region_exit(const void *function_ptr)=0
geopm::OMPT::region_enter
virtual void region_enter(const void *function_ptr)=0
geopm::OMPT::~OMPT
virtual ~OMPT()=default
geopm::OMPT::ompt
static OMPT & ompt(void)
Definition:
OMPT.cpp:52
geopm::OMPT::is_enabled
virtual bool is_enabled(void)=0
geopm
Definition:
Accumulator.cpp:12
Generated by
1.9.1