mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
Remove from api_intercept api_enter
- create new api_enter file - fix dependencies - remove platform include form wddm Change-Id: I5614c3aadbf373b58dfdb34f2f3dec8977e20a3d
This commit is contained in:
@@ -1,31 +1,22 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2019 Intel Corporation
|
||||
* Copyright (C) 2017-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "runtime/utilities/logger.h"
|
||||
#include "runtime/utilities/perf_profiler.h"
|
||||
|
||||
#define API_ENTER(retValPointer) \
|
||||
LoggerApiEnterWrapper<NEO::FileLogger<globalDebugFunctionalityLevel>::enabled()> ApiWrapperForSingleCall(__FUNCTION__, retValPointer)
|
||||
#define SYSTEM_ENTER()
|
||||
#define SYSTEM_LEAVE(id)
|
||||
#define WAIT_ENTER()
|
||||
#define WAIT_LEAVE()
|
||||
|
||||
#if KMD_PROFILING == 1
|
||||
#undef API_ENTER
|
||||
#undef SYSTEM_ENTER
|
||||
#undef SYSTEM_LEAVE
|
||||
#undef WAIT_ENTER
|
||||
#undef WAIT_LEAVE
|
||||
|
||||
#define API_ENTER(x) \
|
||||
PerfProfilerApiWrapper globalPerfProfilersWrapperInstanceForSingleApiFunction(__FUNCTION__)
|
||||
|
||||
#define SYSTEM_ENTER() \
|
||||
PerfProfiler::create(); \
|
||||
gPerfProfiler->systemEnter();
|
||||
|
||||
Reference in New Issue
Block a user