timemory 3.3.0
Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
|
This component wraps malloc, calloc, free, CUDA/HIP malloc/free via GOTCHA and tracks the number of bytes requested/freed in each call. This component is useful for detecting the locations where memory re-use would provide a performance benefit. More...
#include "timemory/components/gotcha/memory_allocations.hpp"
Public Types | |
using | value_type = void |
using | this_type = memory_allocations |
using | base_type = base< this_type, value_type > |
using | tracker_type = policy::instance_tracker< memory_allocations, true > |
using | malloc_gotcha_t = typename malloc_gotcha::gotcha_type< component_tuple_t<> > |
using | malloc_bundle_t = component_tuple_t< malloc_gotcha_t > |
using | data_pointer_t = std::unique_ptr< malloc_bundle_t > |
using | storage_type = empty_storage |
Public Member Functions | |
void | start () |
void | stop () |
void | get () const |
Static Public Member Functions | |
static std::string | label () |
static std::string | description () |
static void | global_init () |
static void | global_finalize () |
template<typename... Args> | |
static opaque | get_opaque (Args &&...) |
This component wraps malloc, calloc, free, CUDA/HIP malloc/free via GOTCHA and tracks the number of bytes requested/freed in each call. This component is useful for detecting the locations where memory re-use would provide a performance benefit.
Definition at line 347 of file memory_allocations.hpp.
Definition at line 354 of file memory_allocations.hpp.
using tim::component::memory_allocations::data_pointer_t = std::unique_ptr<malloc_bundle_t> |
Definition at line 359 of file memory_allocations.hpp.
Definition at line 358 of file memory_allocations.hpp.
using tim::component::memory_allocations::malloc_gotcha_t = typename malloc_gotcha::gotcha_type<component_tuple_t<> > |
Definition at line 357 of file memory_allocations.hpp.
|
inherited |
Definition at line 66 of file declaration.hpp.
Definition at line 353 of file memory_allocations.hpp.
using tim::component::memory_allocations::tracker_type = policy::instance_tracker<memory_allocations, true> |
Definition at line 355 of file memory_allocations.hpp.
using tim::component::memory_allocations::value_type = void |
Definition at line 352 of file memory_allocations.hpp.
|
inlinestatic |
Definition at line 362 of file memory_allocations.hpp.
|
inlineinherited |
Definition at line 69 of file declaration.hpp.
|
inlinestaticinherited |
Definition at line 72 of file declaration.hpp.
|
inlinestatic |
Definition at line 370 of file memory_allocations.hpp.
|
inlinestatic |
Definition at line 369 of file memory_allocations.hpp.
|
inlinestatic |
Definition at line 361 of file memory_allocations.hpp.
|
inline |
|
inline |