mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
20 lines
514 B
C
20 lines
514 B
C
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "core/utilities/perf_profiler.h"
|
|
#include "opencl/source/utilities/logger.h"
|
|
|
|
#define API_ENTER(retValPointer) \
|
|
LoggerApiEnterWrapper<NEO::FileLogger<globalDebugFunctionalityLevel>::enabled()> ApiWrapperForSingleCall(__FUNCTION__, retValPointer)
|
|
|
|
#if KMD_PROFILING == 1
|
|
#undef API_ENTER
|
|
|
|
#define API_ENTER(x) \
|
|
PerfProfilerApiWrapper globalPerfProfilersWrapperInstanceForSingleApiFunction(__FUNCTION__)
|
|
#endif
|