mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
refactor: improve logging of allocations
add capability to measure total amount of allocated memory Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d18d58d4f7
commit
da59b88122
@@ -20,6 +20,7 @@ namespace NEO {
|
||||
class Kernel;
|
||||
struct MultiDispatchInfo;
|
||||
class GraphicsAllocation;
|
||||
class MemoryManager;
|
||||
|
||||
static const int32_t maxErrorDescriptionSize = 1024;
|
||||
const char *getAllocationTypeString(GraphicsAllocation const *graphicsAllocation);
|
||||
@@ -40,7 +41,7 @@ class FileLogger {
|
||||
|
||||
void dumpKernel(const std::string &name, const std::string &src);
|
||||
void logApiCall(const char *function, bool enter, int32_t errorCode);
|
||||
void logAllocation(GraphicsAllocation const *graphicsAllocation);
|
||||
void logAllocation(GraphicsAllocation const *graphicsAllocation, MemoryManager const *memoryManager);
|
||||
size_t getInput(const size_t *input, int32_t index);
|
||||
|
||||
MOCKABLE_VIRTUAL void writeToFile(std::string filename, const char *str, size_t length, std::ios_base::openmode mode);
|
||||
|
||||
Reference in New Issue
Block a user