| 738 | } |
| 739 | |
| 740 | void 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 | |
| 751 | struct AllocInfo |
| 752 | { |
no test coverage detected