libMesh
Public Member Functions | Private Attributes | List of all members
UnitPerfItem Class Reference

#include <libmesh_cppunit.h>

Public Member Functions

 UnitPerfItem (std::string label, std::string header, libMesh::PerfLog &my_perflog)
 
 ~UnitPerfItem ()
 

Private Attributes

const std::string _label
 
const std::string _header
 
libMesh::PerfLog_perflog
 

Detailed Description

Definition at line 60 of file libmesh_cppunit.h.

Constructor & Destructor Documentation

◆ UnitPerfItem()

UnitPerfItem::UnitPerfItem ( std::string  label,
std::string  header,
libMesh::PerfLog my_perflog 
)
inline

Definition at line 63 of file libmesh_cppunit.h.

References _header, _label, _perflog, and libMesh::PerfLog::push().

65  :
66  _label(std::move(label)),
67  _header(std::move(header)),
68  _perflog(my_perflog)
69  {
71  }
const std::string _label
libMesh::PerfLog & _perflog
const std::string _header
void push(const char *label, const char *header="")
Push the event label onto the stack, pausing any active event.
Definition: perf_log.C:138

◆ ~UnitPerfItem()

UnitPerfItem::~UnitPerfItem ( )
inline

Definition at line 73 of file libmesh_cppunit.h.

References _header, _label, _perflog, and libMesh::PerfLog::pop().

74  {
76  }
const std::string _label
void pop(const char *label, const char *header="")
Pop the event label off the stack, resuming any lower event.
Definition: perf_log.C:168
libMesh::PerfLog & _perflog
const std::string _header

Member Data Documentation

◆ _header

const std::string UnitPerfItem::_header
private

Definition at line 80 of file libmesh_cppunit.h.

Referenced by UnitPerfItem(), and ~UnitPerfItem().

◆ _label

const std::string UnitPerfItem::_label
private

Definition at line 79 of file libmesh_cppunit.h.

Referenced by UnitPerfItem(), and ~UnitPerfItem().

◆ _perflog

libMesh::PerfLog& UnitPerfItem::_perflog
private

Definition at line 81 of file libmesh_cppunit.h.

Referenced by UnitPerfItem(), and ~UnitPerfItem().


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