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.
tim::trait::base_has_last< T > Struct Template Reference

trait that signifies that a component has an "last" value which may be different than the "value" value. In general, most components implement 'value' and 'accum' data members of 'value_type'. Where 'value' is generally used as intermediate storage between start/stop and after stop have been called, 'value' is assigned as the difference between start/stop and added to 'accum'. However, in the case where 'value' is valid as an individual measurement, this trait can be used to store 'value' as the individual measurement and 'last' as the difference or vice-versa. More...

#include "timemory/mpl/type_traits.hpp"

+ Collaboration diagram for tim::trait::base_has_last< T >:

Detailed Description

template<typename T>
struct tim::trait::base_has_last< T >

trait that signifies that a component has an "last" value which may be different than the "value" value. In general, most components implement 'value' and 'accum' data members of 'value_type'. Where 'value' is generally used as intermediate storage between start/stop and after stop have been called, 'value' is assigned as the difference between start/stop and added to 'accum'. However, in the case where 'value' is valid as an individual measurement, this trait can be used to store 'value' as the individual measurement and 'last' as the difference or vice-versa.

Definition at line 95 of file type_traits.hpp.


The documentation for this struct was generated from the following file: