mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Revert "refactor: Add GDI profiling"
This reverts commit 8d56f8fb6b.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
87eb5f554a
commit
e949ba7144
@@ -95,4 +95,23 @@ class PerfProfiler {
|
||||
std::unique_ptr<std::ostream> sysLogFile;
|
||||
std::vector<SystemLog> systemLogs;
|
||||
};
|
||||
|
||||
#if KMD_PROFILING == 1
|
||||
|
||||
extern thread_local PerfProfiler *gPerfProfiler;
|
||||
|
||||
struct PerfProfilerApiWrapper {
|
||||
PerfProfilerApiWrapper(const char *funcName)
|
||||
: funcName(funcName) {
|
||||
PerfProfiler::create();
|
||||
gPerfProfiler->apiEnter();
|
||||
}
|
||||
|
||||
~PerfProfilerApiWrapper() {
|
||||
gPerfProfiler->apiLeave(funcName);
|
||||
}
|
||||
|
||||
const char *funcName;
|
||||
};
|
||||
#endif
|
||||
}; // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user