MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / SaveAllocatorStatsToFile

Function SaveAllocatorStatsToFile

src/Tests.cpp:740–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740void SaveAllocatorStatsToFile(const wchar_t* filePath, bool detailed = true)
741{
742#if !defined(VMA_STATS_STRING_ENABLED) || VMA_STATS_STRING_ENABLED
743 wprintf(L"Saving JSON dump to file \"%s\"\n", filePath);
744 char* stats;
745 vmaBuildStatsString(g_hAllocator, &stats, detailed ? VK_TRUE : VK_FALSE);
746 SaveFile(filePath, stats, strlen(stats));
747 vmaFreeStatsString(g_hAllocator, stats);
748#endif
749}
750
751struct AllocInfo
752{

Callers 6

TestSparseBindingFunction · 0.85
TestJsonFunction · 0.85
TestDefragmentationGpuFunction · 0.85

Calls 3

vmaBuildStatsStringFunction · 0.85
SaveFileFunction · 0.85
vmaFreeStatsStringFunction · 0.85

Tested by

no test coverage detected