mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
Revert "refactor: Add GDI profiling"
This reverts commit 524ae7713a.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
dcab4863d5
commit
fa9c79fb63
@@ -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