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::component::num_io_in Struct Reference

the number of times the file system had to perform input. More...

#include "timemory/components/rusage/components.hpp"

+ Collaboration diagram for tim::component::num_io_in:

Public Types

using value_type = int64_t
 
using base_type = base< num_io_in >
 
using storage_type = empty_storage
 

Public Member Functions

value_type get () const
 
value_type get_display () const
 
void start ()
 
void stop ()
 
void start (const cache_type &_cache)
 
void stop (const cache_type &_cache)
 

Static Public Member Functions

static std::string label ()
 
static std::string description ()
 
static value_type record ()
 
static value_type record (const cache_type &_cache)
 
template<typename... Args>
static opaque get_opaque (Args &&...)
 

Static Public Attributes

static const short precision = 0
 
static const short width = 3
 
static const std::ios_base::fmtflags format_flags = {}
 

Detailed Description

the number of times the file system had to perform input.

Definition at line 139 of file components.hpp.

Member Typedef Documentation

◆ base_type

◆ storage_type

Definition at line 66 of file declaration.hpp.

◆ value_type

Definition at line 141 of file components.hpp.

Member Function Documentation

◆ description()

static std::string tim::component::num_io_in::description ( )
inlinestatic

Definition at line 149 of file components.hpp.

150 {
151 return "Number of times the filesystem had to perform input";
152 }

◆ get()

value_type tim::component::num_io_in::get ( ) const
inline

Definition at line 154 of file components.hpp.

155 {
156 auto val = base_type::load();
157 return val;
158 }

References tim::component::base< num_io_in >::load().

Referenced by get_display().

◆ get_display()

value_type tim::component::num_io_in::get_display ( ) const
inline

Definition at line 159 of file components.hpp.

159{ return get(); }
value_type get() const
Definition: components.hpp:154

References get().

◆ get_opaque()

template<typename... Args>
static opaque tim::component::empty_base::get_opaque ( Args &&  ...)
inlinestaticinherited

Definition at line 72 of file declaration.hpp.

73 {
74 return opaque{};
75 }

◆ label()

static std::string tim::component::num_io_in::label ( )
inlinestatic

Definition at line 148 of file components.hpp.

148{ return "io_in"; }

◆ record() [1/2]

static value_type tim::component::num_io_in::record ( )
inlinestatic

Definition at line 153 of file components.hpp.

153{ return get_num_io_in(); }

Referenced by start(), and stop().

◆ record() [2/2]

static value_type tim::component::num_io_in::record ( const cache_type _cache)
inlinestatic

Definition at line 167 of file components.hpp.

167{ return _cache.get_num_io_in(); }

◆ start() [1/2]

void tim::component::num_io_in::start ( )
inline

Definition at line 160 of file components.hpp.

160{ value = record(); }
static value_type record()
Definition: components.hpp:153

References record().

◆ start() [2/2]

void tim::component::num_io_in::start ( const cache_type _cache)
inline

Definition at line 169 of file components.hpp.

169{ value = record(_cache); }

References record().

◆ stop() [1/2]

void tim::component::num_io_in::stop ( )
inline

Definition at line 161 of file components.hpp.

162 {
163 value = (record() - value);
164 accum += value;
165 }

References record().

◆ stop() [2/2]

void tim::component::num_io_in::stop ( const cache_type _cache)
inline

Definition at line 171 of file components.hpp.

172 {
173 auto tmp = record(_cache);
174 accum += (tmp - value);
175 value = tmp;
176 }

References record().

Member Data Documentation

◆ format_flags

const std::ios_base::fmtflags tim::component::num_io_in::format_flags = {}
static

Definition at line 146 of file components.hpp.

◆ precision

const short tim::component::num_io_in::precision = 0
static

Definition at line 144 of file components.hpp.

◆ width

const short tim::component::num_io_in::width = 3
static

Definition at line 145 of file components.hpp.


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