mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +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
@@ -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(¶m);
|
||||
gdi->openAdapterFromLuid(¶m);
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user