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:
Compute-Runtime-Validation
2024-01-30 03:25:36 +01:00
committed by Compute-Runtime-Automation
parent dcab4863d5
commit fa9c79fb63
15 changed files with 175 additions and 193 deletions

View File

@@ -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