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.
|
Specification of how to accumulate statistics. This will not be used unless tim::trait::statistics has been assigned a type and tim::trait::record_statistics is true. Set tim::trait::permissive_statistics to allow implicit conversions, e.g. int -> size_t. More...
#include "timemory/mpl/policy.hpp"
Public Types | |
using | type = Tp |
using | this_type = record_statistics< CompT, type > |
using | policy_type = this_type |
using | statistics_type = statistics< type > |
Public Member Functions | |
void | operator() (statistics< type > &, const CompT &, bool _accum=true) |
void | operator() (type &, const CompT &) |
Specification of how to accumulate statistics. This will not be used unless tim::trait::statistics has been assigned a type and tim::trait::record_statistics is true. Set tim::trait::permissive_statistics to allow implicit conversions, e.g. int -> size_t.
Definition at line 47 of file policy.hpp.
using tim::policy::record_statistics< CompT, Tp >::policy_type = this_type |
Definition at line 51 of file policy.hpp.
using tim::policy::record_statistics< CompT, Tp >::statistics_type = statistics<type> |
Definition at line 52 of file policy.hpp.
using tim::policy::record_statistics< CompT, Tp >::this_type = record_statistics<CompT, type> |
Definition at line 50 of file policy.hpp.
using tim::policy::record_statistics< CompT, Tp >::type = Tp |
Definition at line 49 of file policy.hpp.
|
inline |
Definition at line 53 of file add_statistics.hpp.
References CONDITIONAL_PRINT_HERE, tim::debug, and IF_CONSTEXPR.
|
inline |
Definition at line 55 of file policy.hpp.