mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
refactor: Add GDI profiling
Resolves: NEO-9236 Related-To: NEO-10036 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ce17580b28
commit
486cc71b76
@@ -10,21 +10,3 @@
|
||||
#define SYSTEM_LEAVE(id)
|
||||
#define WAIT_ENTER()
|
||||
#define WAIT_LEAVE()
|
||||
|
||||
#if KMD_PROFILING == 1
|
||||
#undef SYSTEM_ENTER
|
||||
#undef SYSTEM_LEAVE
|
||||
#undef WAIT_ENTER
|
||||
#undef WAIT_LEAVE
|
||||
|
||||
#define SYSTEM_ENTER() \
|
||||
PerfProfiler::create(); \
|
||||
gPerfProfiler->systemEnter();
|
||||
|
||||
#define SYSTEM_LEAVE(id) \
|
||||
gPerfProfiler->systemLeave(id);
|
||||
#define WAIT_ENTER() \
|
||||
SYSTEM_ENTER()
|
||||
#define WAIT_LEAVE() \
|
||||
SYSTEM_LEAVE(0)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user