timemory
3.2.1
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, cudaMalloc, cudaFree 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 > |
Public Member Functions | |
void | start () |
void | stop () |
Static Public Member Functions | |
static std::string | label () |
static std::string | description () |
static void | global_init () |
static void | global_finalize () |
This component wraps malloc, calloc, free, cudaMalloc, cudaFree 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 329 of file memory_allocations.hpp.
Definition at line 336 of file memory_allocations.hpp.
using tim::component::memory_allocations::data_pointer_t = std::unique_ptr<malloc_bundle_t> |
Definition at line 341 of file memory_allocations.hpp.
Definition at line 340 of file memory_allocations.hpp.
using tim::component::memory_allocations::malloc_gotcha_t = typename malloc_gotcha::gotcha_type<component_tuple_t<> > |
Definition at line 339 of file memory_allocations.hpp.
Definition at line 335 of file memory_allocations.hpp.
using tim::component::memory_allocations::tracker_type = policy::instance_tracker<memory_allocations, true> |
Definition at line 337 of file memory_allocations.hpp.
using tim::component::memory_allocations::value_type = void |
Definition at line 334 of file memory_allocations.hpp.
|
inlinestatic |
Definition at line 344 of file memory_allocations.hpp.
|
inlinestatic |
Definition at line 352 of file memory_allocations.hpp.
|
inlinestatic |
Definition at line 351 of file memory_allocations.hpp.
|
inlinestatic |
Definition at line 343 of file memory_allocations.hpp.
|
inline |
|
inline |