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.
|
#include "timemory/data/handler.hpp"
Public Types | |
using | value_type = V |
Static Public Member Functions | |
template<typename T > | |
static decltype(auto) | get (const T &obj) |
this function is returns the current value More... | |
template<typename T > | |
static decltype(auto) | get_display (const T &obj) |
this function is returns the current value in a form suitable for display. It may be necessary to specialize this function downstream. More... | |
template<typename T > | |
static void | store (T &obj, const value_type &v) |
this function is used to store a value More... | |
template<typename T , typename FuncT > | |
static auto | store (T &obj, FuncT &&f, const value_type &v) -> decltype(obj.set_value(std::forward< FuncT >(f)(obj.get_value(), v)), void()) |
static void | begin (value_type &obj, const value_type &v) |
this function sets the value of the temporary in mark_begin . More... | |
template<typename FuncT > | |
static void | begin (value_type &obj, FuncT &&f, const value_type &v) |
this function sets the value of the temporary in mark_begin . More... | |
template<typename T > | |
static void | end (T &obj, const value_type &v) |
this function computes the difference between the provided value and the temporary from mark_begin and then updates the current value More... | |
template<typename T , typename FuncT > | |
static void | end (T &obj, FuncT &&f, const value_type &v) |
this function computes the difference between the provided value and the temporary from mark_begin and then updates the current value More... | |
template<typename T > | |
static void | store (T &obj, value_type &&v) |
overload with move semantics More... | |
template<typename T , typename FuncT > | |
static auto | store (T &obj, FuncT &&f, value_type &&v) -> decltype(obj.set_value(std::forward< FuncT >(f)(obj.get_value(), std::move(v))), void()) |
overload with move semantics More... | |
static void | begin (value_type &obj, value_type &&v) |
overload with move semantics More... | |
template<typename T , typename FuncT > | |
static auto | begin (value_type &obj, FuncT &&f, value_type &&v) |
overload with move semantics More... | |
template<typename T > | |
static void | end (T &obj, value_type &&v) |
overload with move semantics More... | |
template<typename T , typename FuncT > | |
static void | end (T &obj, FuncT &&f, value_type &&v) |
overload with move semantics More... | |
Definition at line 53 of file handler.hpp.
using tim::data::handler< V, Tag >::value_type = V |
Definition at line 55 of file handler.hpp.
|
inlinestatic |
this function sets the value of the temporary in mark_begin
.
Definition at line 94 of file handler.hpp.
|
inlinestatic |
this function sets the value of the temporary in mark_begin
.
Definition at line 98 of file handler.hpp.
|
inlinestatic |
overload with move semantics
Definition at line 148 of file handler.hpp.
|
inlinestatic |
|
inlinestatic |
this function computes the difference between the provided value and the temporary from mark_begin
and then updates the current value
Definition at line 106 of file handler.hpp.
References tim::math::minus(), and tim::data::handler< V, Tag >::store().
|
inlinestatic |
this function computes the difference between the provided value and the temporary from mark_begin
and then updates the current value
Definition at line 116 of file handler.hpp.
References tim::math::minus(), and tim::data::handler< V, Tag >::store().
|
inlinestatic |
overload with move semantics
Definition at line 164 of file handler.hpp.
References tim::math::minus(), and tim::data::handler< V, Tag >::store().
|
inlinestatic |
overload with move semantics
Definition at line 155 of file handler.hpp.
References tim::math::minus().
|
inlinestatic |
this function is returns the current value
Definition at line 60 of file handler.hpp.
References tim::data::handler< V, Tag >::get().
Referenced by tim::component::data_tracker< InpT, Tag >::get(), tim::data::handler< V, Tag >::get(), and tim::data::handler< V, Tag >::get_display().
|
inlinestatic |
this function is returns the current value in a form suitable for display. It may be necessary to specialize this function downstream.
Definition at line 68 of file handler.hpp.
References tim::data::handler< V, Tag >::get().
Referenced by tim::component::data_tracker< InpT, Tag >::get_display().
|
inlinestatic |
this function is used to store a value
Definition at line 79 of file handler.hpp.
Referenced by tim::data::handler< V, Tag >::end().
|
inlinestatic |
FuncT | Should be binary operation which takes two inputs and returns one this function is used to store the current value after performing some operation. |
Definition at line 87 of file handler.hpp.
|
inlinestatic |
overload with move semantics
Definition at line 136 of file handler.hpp.
|
inlinestatic |
overload with move semantics
Definition at line 129 of file handler.hpp.