Improve allocation logging, add gpu address to the log

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2021-01-20 12:04:13 +00:00
committed by Compute-Runtime-Automation
parent 824dd629e7
commit 6a54bde164
3 changed files with 15 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2020 Intel Corporation
* Copyright (C) 2019-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -97,6 +97,7 @@ void FileLogger<DebugLevel>::logAllocation(GraphicsAllocation const *graphicsAll
ss << " ThreadID: " << thisThread;
ss << " AllocationType: " << getAllocationTypeString(graphicsAllocation);
ss << " MemoryPool: " << graphicsAllocation->getMemoryPool();
ss << " GPU address: 0x" << std::hex << graphicsAllocation->getGpuAddress();
ss << graphicsAllocation->getAllocationInfoString();
ss << std::endl;