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:
Compute-Runtime-Validation
2024-01-23 05:41:28 +01:00
committed by Compute-Runtime-Automation
parent 87eb5f554a
commit e949ba7144
15 changed files with 177 additions and 191 deletions

View File

@@ -47,30 +47,8 @@ TEST(GdiInterface, givenGdiOverridePathWhenGdiInterfaceIsCalledThenOverridePathI
Os::gdiDllName = oldName;
}
TEST(GdiInterface, givenPrintKmdTimesWhenCallThkWrapperThenRecordTime) {
DebugManagerStateRestore dbgRestorer;
debugManager.flags.PrintKmdTimes.set(1);
auto gdi = std::make_unique<Gdi>();
EXPECT_TRUE(gdi->isInitialized());
testing::internal::CaptureStdout();
D3DKMT_OPENADAPTERFROMLUID param = {};
gdi->openAdapterFromLuid(&param);
gdi->openAdapterFromLuid(&param);
D3DKMT_CLOSEADAPTER closeAdapter = {};
closeAdapter.hAdapter = param.hAdapter;
gdi->closeAdapter(&closeAdapter);
gdi.reset();
auto output = testing::internal::GetCapturedStdout();
EXPECT_TRUE(output.find("\n--- Gdi statistics ---\n") != std::string::npos);
}
TEST(ThkWrapperTest, givenThkWrapperWhenConstructedThenmFuncIsInitialized) {
GdiProfiler profiler{};
NEO::ThkWrapper<void *> wrapper(profiler, "nullptr", 0u);
NEO::ThkWrapper<void *> wrapper;
EXPECT_EQ(nullptr, wrapper.mFunc);
}