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.
|
#include "timemory/components/gotcha/memory_allocations.hpp"
Public Types | |
using | value_type = double |
using | this_type = malloc_gotcha |
using | base_type = base< this_type, value_type > |
using | storage_type = typename base_type::storage_type |
using | string_hash = std::hash< std::string > |
template<typename Tp > | |
using | gotcha_component_type = push_back_t< Tp, this_type > |
template<typename Tp > | |
using | gotcha_type = gotcha< data_size, push_back_t< Tp, this_type >, type_list< this_type > > |
template<typename Tp > | |
using | component_type = push_back_t< Tp, gotcha_type< Tp > > |
Public Member Functions | |
void | start () |
void | stop () |
double | get () const |
double | get_display () const |
void | set_prefix () |
void | audit (audit::incoming, size_t nbytes) |
nbytes is passed to malloc More... | |
void | audit (audit::incoming, size_t nmemb, size_t size) |
nmemb and size is passed to calloc More... | |
void | audit (audit::outgoing, void *ptr) |
void* is returned from malloc and calloc More... | |
void | audit (audit::incoming, void *ptr) |
void* is passed to free More... | |
void | set_prefix (const char *_prefix) |
this_type & | operator+= (const this_type &rhs) |
this_type & | operator-= (const this_type &rhs) |
Static Public Member Functions | |
static std::string | label () |
static std::string | description () |
static void | global_finalize () |
template<typename Tp > | |
static void | configure () |
template<typename Tp > | |
static void | tear_down () |
Static Public Attributes | |
static constexpr size_t | data_size = 3 |
Definition at line 52 of file memory_allocations.hpp.
Definition at line 64 of file memory_allocations.hpp.
using tim::component::malloc_gotcha::component_type = push_back_t<Tp, gotcha_type<Tp> > |
Definition at line 94 of file memory_allocations.hpp.
using tim::component::malloc_gotcha::gotcha_component_type = push_back_t<Tp, this_type> |
Definition at line 87 of file memory_allocations.hpp.
using tim::component::malloc_gotcha::gotcha_type = gotcha<data_size, push_back_t<Tp, this_type>, type_list<this_type> > |
Definition at line 90 of file memory_allocations.hpp.
using tim::component::malloc_gotcha::storage_type = typename base_type::storage_type |
Definition at line 65 of file memory_allocations.hpp.
using tim::component::malloc_gotcha::string_hash = std::hash<std::string> |
Definition at line 66 of file memory_allocations.hpp.
Definition at line 63 of file memory_allocations.hpp.
using tim::component::malloc_gotcha::value_type = double |
Definition at line 62 of file memory_allocations.hpp.
|
inline |
nbytes is passed to malloc
Definition at line 129 of file memory_allocations.hpp.
References DEBUG_PRINT_HERE.
|
inline |
nmemb and size is passed to calloc
Definition at line 138 of file memory_allocations.hpp.
References DEBUG_PRINT_HERE.
|
inline |
void* is passed to free
Definition at line 158 of file memory_allocations.hpp.
References tim::debug, DEBUG_PRINT_HERE, tim::component::base< malloc_gotcha, double >::get_label(), and tim::verbose.
|
inline |
void* is returned from malloc and calloc
Definition at line 147 of file memory_allocations.hpp.
References DEBUG_PRINT_HERE.
|
static |
|
inlinestatic |
Definition at line 70 of file memory_allocations.hpp.
|
inline |
Definition at line 122 of file memory_allocations.hpp.
References tim::component::base< Tp, Value >::get_unit().
Referenced by get_display().
|
inline |
|
inlinestatic |
Definition at line 96 of file memory_allocations.hpp.
|
inlinestatic |
Definition at line 69 of file memory_allocations.hpp.
Definition at line 228 of file memory_allocations.hpp.
Definition at line 237 of file memory_allocations.hpp.
void tim::component::malloc_gotcha::set_prefix | ( | ) |
|
inline |
|
inline |
Definition at line 114 of file memory_allocations.hpp.
|
inline |
Definition at line 116 of file memory_allocations.hpp.
|
static |
|
staticconstexpr |
Definition at line 59 of file memory_allocations.hpp.