13#ifndef ARCCORE_COMMON_ACCELERATOR_INTERNAL_MEMORYTRACER_H
14#define ARCCORE_COMMON_ACCELERATOR_INTERNAL_MEMORYTRACER_H
18#include "arccore/common/accelerator/CommonAcceleratorGlobal.h"
25namespace Arcane::Accelerator::Impl
41 static void notifyMemoryFree(
void* ptr,
const String& name,
const String& stack_trace,
Int64 timestamp);
42 static std::pair<String, String> findMemory(
const void* ptr);
52class ARCCORE_COMMON_EXPORT MemoryTracerWrapper
56 MemoryTracerWrapper();
60 bool isActive()
const {
return m_trace_level > 0; }
63 void setTraceLevel(
Int32 v) { m_trace_level = v; }
67 Int32 m_trace_level = 0;
Utility class for tracing memory accesses between the accelerator and the host.
Information about an allocated memory region.
Class containing information to specialize allocations.
View of an array of elements of type T.
Unicode character string.
std::int64_t Int64
Signed integer type of 64 bits.
std::int32_t Int32
Signed integer type of 32 bits.