refactor: move memory tracking to memory manager

- remove wddm specific code
- improve total size reported to be in decimal

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek
2024-09-12 15:38:44 +00:00
committed by Compute-Runtime-Automation
parent c0d9cb4d84
commit dd631610b3
7 changed files with 18 additions and 20 deletions

View File

@@ -118,8 +118,8 @@ void FileLogger<debugLevel>::logAllocation(GraphicsAllocation const *graphicsAll
ss << graphicsAllocation->getPatIndexInfoString();
if (memoryManager) {
ss << " Total sys mem allocated: " << memoryManager->getUsedSystemMemorySize();
ss << " Total lmem allocated: " << memoryManager->getUsedLocalMemorySize(graphicsAllocation->getRootDeviceIndex());
ss << " Total sys mem allocated: " << std::dec << memoryManager->getUsedSystemMemorySize();
ss << " Total lmem allocated: " << std::dec << memoryManager->getUsedLocalMemorySize(graphicsAllocation->getRootDeviceIndex());
}
ss << std::endl;