geopm  3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
geopm_prof.h
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 GEOPM_PROF_H_INCLUDE
7 #define GEOPM_PROF_H_INCLUDE
8 
9 #include <stddef.h>
10 #include <stdint.h>
11 
12 #include "geopm_public.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 /*************************/
19 /* APPLICATION PROFILING */
20 /*************************/
21 int GEOPM_PUBLIC
22  geopm_prof_region(const char *region_name, uint64_t hint, uint64_t *region_id);
23 
24 int GEOPM_PUBLIC
25  geopm_prof_enter(uint64_t region_id);
26 
27 int GEOPM_PUBLIC
28  geopm_prof_exit(uint64_t region_id);
29 
30 int GEOPM_PUBLIC
31  geopm_prof_epoch(void);
32 
33 int GEOPM_PUBLIC
34  geopm_prof_shutdown(void);
35 
36 int GEOPM_PUBLIC
37  geopm_tprof_init(uint32_t num_work_unit);
38 
39 int GEOPM_PUBLIC
40  geopm_tprof_post(void);
41 
42 int GEOPM_PUBLIC
43  geopm_prof_overhead(double overhead_sec);
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 #endif
int GEOPM_PUBLIC geopm_prof_region(const char *region_name, uint64_t hint, uint64_t *region_id)
Definition: DefaultProfile.cpp:43
int GEOPM_PUBLIC geopm_prof_exit(uint64_t region_id)
Definition: DefaultProfile.cpp:77
int GEOPM_PUBLIC geopm_tprof_init(uint32_t num_work_unit)
Definition: DefaultProfile.cpp:128
int GEOPM_PUBLIC geopm_prof_enter(uint64_t region_id)
Definition: DefaultProfile.cpp:60
int GEOPM_PUBLIC geopm_prof_overhead(double overhead_sec)
Definition: DefaultProfile.cpp:157
int GEOPM_PUBLIC geopm_prof_shutdown(void)
Definition: DefaultProfile.cpp:111
int GEOPM_PUBLIC geopm_tprof_post(void)
Definition: DefaultProfile.cpp:143
int GEOPM_PUBLIC geopm_prof_epoch(void)
Definition: DefaultProfile.cpp:94