Added internal function SaveStatsStringToFile

This commit is contained in:
Adam Sawicki 2021-03-11 14:24:05 +01:00
parent cf6c586e57
commit 0a79fdfbd2
2 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@ -120,6 +120,14 @@ static bool ValidateDataZero(const void* ptr, const UINT64 sizeInBytes)
return true;
}
static void SaveStatsStringToFile(const TestContext& ctx, const wchar_t* dstFilePath)
{
WCHAR* s = nullptr;
ctx.allocator->BuildStatsString(&s, TRUE);
SaveFile(dstFilePath, s, wcslen(s) * sizeof(WCHAR));
ctx.allocator->FreeStatsString(s);
}
static void TestVirtualBlocks(const TestContext& ctx)
{
wprintf(L"Test virtual blocks\n");