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.
tim::component::num_io_out Struct Reference

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

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

+ Collaboration diagram for tim::component::num_io_out:

Public Types

using value_type = int64_t
 
using base_type = base< num_io_out >
 

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)
 

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 output.

Definition at line 184 of file components.hpp.

Member Typedef Documentation

◆ base_type

◆ value_type

Definition at line 186 of file components.hpp.

Member Function Documentation

◆ description()

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

Definition at line 194 of file components.hpp.

195  {
196  return "Number of times the filesystem had to perform output";
197  }

◆ get()

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

Definition at line 199 of file components.hpp.

200  {
201  auto val = base_type::load();
202  return val;
203  }

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

Referenced by get_display().

◆ get_display()

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

Definition at line 204 of file components.hpp.

204 { return get(); }
value_type get() const
Definition: components.hpp:199

References get().

◆ label()

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

Definition at line 193 of file components.hpp.

193 { return "io_out"; }

◆ record() [1/2]

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

Definition at line 198 of file components.hpp.

198 { return get_num_io_out(); }

Referenced by start(), and stop().

◆ record() [2/2]

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

Definition at line 212 of file components.hpp.

212 { return _cache.get_num_io_out(); }

◆ start() [1/2]

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

Definition at line 205 of file components.hpp.

205 { value = record(); }
static value_type record()
Definition: components.hpp:198

References record().

◆ start() [2/2]

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

Definition at line 214 of file components.hpp.

214 { value = record(_cache); }

References record().

◆ stop() [1/2]

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

Definition at line 206 of file components.hpp.

207  {
208  value = (record() - value);
209  accum += value;
210  }

References record().

◆ stop() [2/2]

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

Definition at line 216 of file components.hpp.

217  {
218  auto tmp = record(_cache);
219  accum += (tmp - value);
220  value = tmp;
221  }

References record().

Member Data Documentation

◆ format_flags

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

Definition at line 191 of file components.hpp.

◆ precision

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

Definition at line 189 of file components.hpp.

◆ width

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

Definition at line 190 of file components.hpp.


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