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.
|
trait that signifies that an implementation is enabled at runtime. The value returned from get() is for the specific setting for the type, the global settings (type: void) and the specific settings for it's APIs More...
#include "timemory/mpl/type_traits.hpp"
Public Types | |
using | api_type_list = mpl::get_true_types_t< concepts::is_runtime_configurable, component_apis_t< T > > |
type-list of APIs that are runtime configurable More... | |
Static Public Member Functions | |
template<typename U = T> | |
static bool | get (enable_if_t< is_available< U >::value &&get_value< U >(), int >=0) |
GET specialization if component is available. More... | |
template<typename U = T> | |
static bool | set (bool val, enable_if_t< is_available< U >::value &&get_value< U >(), int >=0) |
SET specialization if component is available. More... | |
template<typename U = T> | |
static bool | get (enable_if_t<!is_available< U >::value||!get_value< U >(), long >=0) |
GET specialization if component is NOT available. More... | |
template<typename U = T> | |
static bool | set (bool, enable_if_t<!is_available< U >::value||!get_value< U >(), long >=0) |
SET specialization if component is NOT available. More... | |
Static Public Attributes | |
static constexpr bool | value = supports_runtime_enabled<T>::value |
trait that signifies that an implementation is enabled at runtime. The value returned from get() is for the specific setting for the type, the global settings (type: void) and the specific settings for it's APIs
Definition at line 172 of file type_traits.hpp.
using tim::trait::runtime_enabled< T >::api_type_list = mpl::get_true_types_t<concepts::is_runtime_configurable, component_apis_t<T> > |
type-list of APIs that are runtime configurable
Definition at line 185 of file type_traits.hpp.
|
inlinestatic |
GET specialization if component is available.
Definition at line 190 of file type_traits.hpp.
Referenced by tim::get_storage_singleton(), and tim::operation::generic_counter< Tp >::TIMEMORY_DELETED_OBJECT().
|
inlinestatic |
GET specialization if component is NOT available.
Definition at line 207 of file type_traits.hpp.
|
inlinestatic |
SET specialization if component is available.
Definition at line 199 of file type_traits.hpp.
Referenced by tim::component::ompt_handle< Api >::global_finalize(), tim::component::ompt_handle< Api >::global_init(), tim::openmp::callback_connector< Components, Api >::is_enabled(), tim::component::ompt_handle< Api >::start(), and tim::component::ompt_handle< Api >::stop().
|
inlinestatic |
SET specialization if component is NOT available.
Definition at line 215 of file type_traits.hpp.
|
staticconstexpr |
Definition at line 182 of file type_traits.hpp.