MOS Source Code
Loading...
Searching...
No Matches
profiling.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <mos/mos_global.h>
6#include <mos/types.hpp>
7
8typedef u64 pf_point_t;
9
10#if MOS_CONFIG(MOS_PROFILING)
12
20{
22}
23
29void profile_leave(pf_point_t point, const char *fmt, ...) __printf(2, 3);
30
31#else
32
33#define profile_enter() 0
34
35#define profile_leave(p, ...) ((void) p)
36
37#endif
#define should_inline
Definition mos_global.h:37
#define __printf(a, b)
Definition mos_global.h:30
#define profile_enter()
Definition profiling.hpp:33
u64 pf_point_t
Definition profiling.hpp:8
#define profile_leave(p,...)
Definition profiling.hpp:35
unsigned long long u64
Definition types.h:19
u64 platform_get_timestamp()