12#ifndef ARCCORE_COMMON_ACCELERATOR_INTERNAL_MEMORYTRACER_H
13#define ARCCORE_COMMON_ACCELERATOR_INTERNAL_MEMORYTRACER_H
17#include "arccore/common/accelerator/CommonAcceleratorGlobal.h"
24namespace Arcane::Accelerator::impl
39 static void notifyMemoryFree(
void* ptr,
const String& name,
const String& stack_trace,
Int64 timestamp);
40 static std::pair<String, String> findMemory(
const void* ptr);
49class ARCCORE_COMMON_EXPORT MemoryTracerWrapper
53 MemoryTracerWrapper();
57 bool isActive()
const {
return m_trace_level > 0; }
60 void setTraceLevel(
Int32 v) { m_trace_level = v; }
64 Int32 m_trace_level = 0;
Classe utilitaire pour tracer les accès mémoire entre l'accélérateur et l'hôte.
Informations sur une zone mémoire allouée.
Classe contenant des informations pour spécialiser les allocations.
Vue d'un tableau d'éléments de type T.
Chaîne de caractères unicode.
std::int64_t Int64
Type entier signé sur 64 bits.
std::int32_t Int32
Type entier signé sur 32 bits.