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_minor_page_faults Struct Reference

the number of page faults serviced without any I/O activity; here I/O activity is avoided by reclaiming a page frame from the list of pages awaiting reallocation. More...

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

+ Collaboration diagram for tim::component::num_minor_page_faults:

Public Types

using value_type = int64_t
 
using base_type = base< num_minor_page_faults >
 

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 page faults serviced without any I/O activity; here I/O activity is avoided by reclaiming a page frame from the list of pages awaiting reallocation.

Definition at line 230 of file components.hpp.

Member Typedef Documentation

◆ base_type

◆ value_type

Definition at line 232 of file components.hpp.

Member Function Documentation

◆ description()

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

Definition at line 240 of file components.hpp.

241  {
242  return "Number of page faults serviced without any I/O activity via 'reclaiming' "
243  "a page frame from the list of pages awaiting reallocation";
244  }

◆ get()

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

Definition at line 246 of file components.hpp.

247  {
248  auto val = base_type::load();
249  return val;
250  }

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

Referenced by get_display().

◆ get_display()

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

Definition at line 251 of file components.hpp.

251 { return get(); }

References get().

◆ label()

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

Definition at line 239 of file components.hpp.

239 { return "minor_page_flts"; }

◆ record() [1/2]

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

Definition at line 245 of file components.hpp.

245 { return get_num_minor_page_faults(); }

Referenced by start(), and stop().

◆ record() [2/2]

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

Definition at line 259 of file components.hpp.

260  {
261  return _cache.get_num_minor_page_faults();
262  }

◆ start() [1/2]

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

Definition at line 252 of file components.hpp.

252 { value = record(); }

References record().

◆ start() [2/2]

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

Definition at line 264 of file components.hpp.

264 { value = record(_cache); }

References record().

◆ stop() [1/2]

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

Definition at line 253 of file components.hpp.

254  {
255  value = (record() - value);
256  accum += value;
257  }

References record().

◆ stop() [2/2]

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

Definition at line 266 of file components.hpp.

267  {
268  auto tmp = record(_cache);
269  accum += (tmp - value);
270  value = tmp;
271  }

References record().

Member Data Documentation

◆ format_flags

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

Definition at line 237 of file components.hpp.

◆ precision

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

Definition at line 235 of file components.hpp.

◆ width

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

Definition at line 236 of file components.hpp.


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