Block-Structured AMR Software Framework
amrex::Arena::ArenaProfiler Struct Reference

#include <AMReX_Arena.H>

Public Member Functions

 ~ArenaProfiler ()
 
 ArenaProfiler () noexcept=default
 
 ArenaProfiler (const ArenaProfiler &rhs)=delete
 
 ArenaProfiler (ArenaProfiler &&rhs)=delete
 
ArenaProfileroperator= (const ArenaProfiler &rhs)=delete
 
ArenaProfileroperator= (ArenaProfiler &&rhs)=delete
 
void profile_alloc (void *ptr, std::size_t nbytes)
 
void profile_free (void *ptr)
 

Public Attributes

bool m_do_profiling = false
 If this arena is profiled by TinyProfiler. More...
 
std::mutex m_arena_profiler_mutex
 Mutex for the profiling. More...
 
std::map< std::string, MemStatm_profiling_stats
 Data structure used for profiling with TinyProfiler. More...
 
std::unordered_map< void *, std::pair< MemStat *, std::size_t > > m_currently_allocated
 Track the currently allocated memory, not used by CArena. More...
 

Constructor & Destructor Documentation

◆ ~ArenaProfiler()

amrex::Arena::ArenaProfiler::~ArenaProfiler ( )
default

◆ ArenaProfiler() [1/3]

amrex::Arena::ArenaProfiler::ArenaProfiler ( )
defaultnoexcept

◆ ArenaProfiler() [2/3]

amrex::Arena::ArenaProfiler::ArenaProfiler ( const ArenaProfiler rhs)
delete

◆ ArenaProfiler() [3/3]

amrex::Arena::ArenaProfiler::ArenaProfiler ( ArenaProfiler &&  rhs)
delete

Member Function Documentation

◆ operator=() [1/2]

ArenaProfiler& amrex::Arena::ArenaProfiler::operator= ( ArenaProfiler &&  rhs)
delete

◆ operator=() [2/2]

ArenaProfiler& amrex::Arena::ArenaProfiler::operator= ( const ArenaProfiler rhs)
delete

◆ profile_alloc()

void amrex::Arena::ArenaProfiler::profile_alloc ( void *  ptr,
std::size_t  nbytes 
)

◆ profile_free()

void amrex::Arena::ArenaProfiler::profile_free ( void *  ptr)

Member Data Documentation

◆ m_arena_profiler_mutex

std::mutex amrex::Arena::ArenaProfiler::m_arena_profiler_mutex

Mutex for the profiling.

◆ m_currently_allocated

std::unordered_map<void*, std::pair<MemStat*, std::size_t> > amrex::Arena::ArenaProfiler::m_currently_allocated

Track the currently allocated memory, not used by CArena.

◆ m_do_profiling

bool amrex::Arena::ArenaProfiler::m_do_profiling = false

If this arena is profiled by TinyProfiler.

◆ m_profiling_stats

std::map<std::string, MemStat> amrex::Arena::ArenaProfiler::m_profiling_stats

Data structure used for profiling with TinyProfiler.


The documentation for this struct was generated from the following files: