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.
|
I/O counter for chars read. The number of bytes which this task has caused to be read from storage. This is simply the sum of bytes which this process passed to read() and pread(). It includes things like tty IO and it is unaffected by whether or not actual physical disk IO was required (the read might have been satisfied from pagecache) More...
#include "timemory/components/io/components.hpp"
Public Types | |
using | this_type = read_char |
using | value_type = std::pair< int64_t, int64_t > |
using | base_type = base< this_type, value_type > |
using | result_type = std::pair< double, double > |
using | unit_type = typename trait::units< this_type >::type |
using | display_unit_type = typename trait::units< this_type >::display_type |
Public Member Functions | |
std::string | get_display () const |
result_type | get () const |
void | start () |
void | stop () |
void | sample () |
sample a measurement More... | |
void | sample (const cache_type &_cache) |
sample a measurement from cached data More... | |
void | start (const cache_type &_cache) |
start a measurement using the cached data More... | |
void | stop (const cache_type &_cache) |
stop a measurement using the cached data More... | |
Static Public Member Functions | |
static std::string | label () |
static std::string | description () |
static std::pair< double, double > | unit () |
static std::vector< std::string > | display_unit_array () |
static std::vector< std::string > | label_array () |
static display_unit_type | display_unit () |
static std::pair< double, double > | unit_array () |
static std::vector< std::string > | description_array () |
static auto | get_timestamp () |
static value_type | record () |
static auto | get_timing_unit () |
static unit_type | get_unit () |
static display_unit_type | get_display_unit () |
static value_type | record (const cache_type &_cache) |
read the value from cached data More... | |
I/O counter for chars read. The number of bytes which this task has caused to be read from storage. This is simply the sum of bytes which this process passed to read() and pread(). It includes things like tty IO and it is unaffected by whether or not actual physical disk IO was required (the read might have been satisfied from pagecache)
Definition at line 55 of file components.hpp.
Definition at line 59 of file components.hpp.
using tim::component::read_char::display_unit_type = typename trait::units<this_type>::display_type |
Definition at line 62 of file components.hpp.
using tim::component::read_char::result_type = std::pair<double, double> |
Definition at line 60 of file components.hpp.
Definition at line 57 of file components.hpp.
using tim::component::read_char::unit_type = typename trait::units<this_type>::type |
Definition at line 61 of file components.hpp.
using tim::component::read_char::value_type = std::pair<int64_t, int64_t> |
Definition at line 58 of file components.hpp.
|
inlinestatic |
Definition at line 65 of file components.hpp.
|
inlinestatic |
Definition at line 96 of file components.hpp.
|
inlinestatic |
Definition at line 89 of file components.hpp.
Referenced by get_display_unit(), tim::component::written_char::get_display_unit(), tim::component::read_bytes::get_display_unit(), and tim::component::written_bytes::get_display_unit().
|
inlinestatic |
Definition at line 78 of file components.hpp.
References get_display_unit().
|
inline |
Definition at line 140 of file components.hpp.
References get_timing_unit(), get_unit(), tim::isfinite(), tim::component::base< read_char, std::pair< int64_t, int64_t > >::laps, and tim::component::base< Tp, Value >::load().
Referenced by get_display(), tim::component::written_char::get_display(), tim::component::read_bytes::get_display(), and tim::component::written_bytes::get_display().
|
inline |
Definition at line 113 of file components.hpp.
References get(), get_display_unit(), tim::component::base< Tp, Value >::get_format_flags(), tim::component::base< Tp, Value >::get_precision(), and tim::component::base< Tp, Value >::get_width().
|
inlinestatic |
Definition at line 199 of file components.hpp.
References display_unit(), tim::units::get_memory_unit(), tim::units::get_timing_unit(), tim::mpl::apply< Ret >::join(), tim::memory_units, and tim::timing_units.
Referenced by display_unit_array(), tim::component::written_char::display_unit_array(), tim::component::read_bytes::display_unit_array(), tim::component::written_bytes::display_unit_array(), get_display(), tim::component::written_char::get_display(), tim::component::read_bytes::get_display(), and tim::component::written_bytes::get_display().
|
inlinestatic |
Definition at line 101 of file components.hpp.
Referenced by record(), tim::component::written_char::record(), tim::component::read_bytes::record(), and tim::component::written_bytes::record().
|
inlinestatic |
Definition at line 105 of file components.hpp.
References tim::units::get_timing_unit(), and tim::timing_units.
Referenced by get(), tim::component::written_char::get(), tim::component::read_bytes::get(), and tim::component::written_bytes::get().
|
inlinestatic |
Definition at line 176 of file components.hpp.
References tim::units::get_memory_unit(), tim::units::get_timing_unit(), tim::memory_units, tim::timing_units, and unit().
Referenced by get(), tim::component::written_char::get(), tim::component::read_bytes::get(), and tim::component::written_bytes::get().
|
inlinestatic |
Definition at line 64 of file components.hpp.
Referenced by label_array(), tim::component::written_char::label_array(), tim::component::read_bytes::label_array(), and tim::component::written_bytes::label_array().
|
inlinestatic |
|
inlinestatic |
Definition at line 103 of file components.hpp.
References get_timestamp().
Referenced by start(), tim::component::written_char::start(), tim::component::read_bytes::start(), tim::component::written_bytes::start(), stop(), tim::component::written_char::stop(), tim::component::read_bytes::stop(), and tim::component::written_bytes::stop().
|
inlinestatic |
read the value from cached data
Definition at line 236 of file components.hpp.
References get_timestamp().
|
inline |
sample a measurement
Definition at line 222 of file components.hpp.
|
inline |
sample a measurement from cached data
Definition at line 229 of file components.hpp.
|
inline |
|
inline |
start a measurement using the cached data
Definition at line 242 of file components.hpp.
References record().
|
inline |
Definition at line 168 of file components.hpp.
References tim::math::abs, and record().
|
inline |
stop a measurement using the cached data
Definition at line 245 of file components.hpp.
References tim::math::abs, and record().
|
inlinestatic |
Definition at line 71 of file components.hpp.
Referenced by get_unit(), tim::component::written_char::get_unit(), tim::component::read_bytes::get_unit(), tim::component::written_bytes::get_unit(), unit_array(), tim::component::written_char::unit_array(), tim::component::read_bytes::unit_array(), and tim::component::written_bytes::unit_array().
|
inlinestatic |