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::craypat_flush_buffer Struct Reference

Writes all the recorded contents in the data buffer. Returns the number of bytes flushed. More...

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

+ Collaboration diagram for tim::component::craypat_flush_buffer:

Public Types

using value_type = unsigned long
 
using this_type = craypat_flush_buffer
 
using base_type = base< this_type, value_type >
 

Public Member Functions

double get () const
 
auto get_display () const
 
void start ()
 
void stop ()
 

Static Public Member Functions

static std::string label ()
 
static std::string description ()
 
static value_type record ()
 

Detailed Description

Writes all the recorded contents in the data buffer. Returns the number of bytes flushed.

Definition at line 282 of file components.hpp.

Member Typedef Documentation

◆ base_type

◆ this_type

◆ value_type

Definition at line 284 of file components.hpp.

Member Function Documentation

◆ description()

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

Definition at line 289 of file components.hpp.

290  {
291  return "Writes all the recorded contents in the data buffer. Returns the number "
292  "of bytes flushed";
293  }

◆ get()

double tim::component::craypat_flush_buffer::get ( ) const
inline

Definition at line 302 of file components.hpp.

302 { return m_nbytes; }

◆ get_display()

auto tim::component::craypat_flush_buffer::get_display ( ) const
inline

Definition at line 303 of file components.hpp.

303 { return get(); }

References tim::component::craypat_counters::get().

◆ label()

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

Definition at line 288 of file components.hpp.

288 { return "craypat_flush_buffer"; }

◆ record()

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

Definition at line 295 of file components.hpp.

296  {
297  unsigned long _nbytes;
298  backend::craypat::flush_buffer(&_nbytes);
299  return _nbytes;
300  }

◆ start()

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

Definition at line 304 of file components.hpp.

304 {}

◆ stop()

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

Definition at line 305 of file components.hpp.

306  {
307  value = record();
308  accum += record();
309  }

References tim::component::craypat_counters::record().


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