MOS Source Code
Loading...
Searching...
No Matches
profiling.h
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.h>
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
u32 const char * fmt
Definition assert.h:36
#define should_inline
Definition mos_global.h:37
#define __printf(a, b)
Definition mos_global.h:30
#define profile_enter()
Definition profiling.h:33
u64 pf_point_t
Definition profiling.h:8
#define profile_leave(p,...)
Definition profiling.h:35
unsigned long long u64
Definition types.h:23
u64 platform_get_timestamp()