ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
PMonUtils::CustomBenchmarkGuard Class Reference

#include <CustomBenchmark.h>

Collaboration diagram for PMonUtils::CustomBenchmarkGuard:

Public Member Functions

 CustomBenchmarkGuard (CustomBenchmark *cb, unsigned id, int count=1)
 
 ~CustomBenchmarkGuard ()
 

Private Attributes

CustomBenchmarkm_cb
 
int m_count
 

Detailed Description

Definition at line 117 of file CustomBenchmark.h.

Constructor & Destructor Documentation

◆ CustomBenchmarkGuard()

PMonUtils::CustomBenchmarkGuard::CustomBenchmarkGuard ( CustomBenchmark cb,
unsigned  id,
int  count = 1 
)
inline

Definition at line 120 of file CustomBenchmark.h.

120 : m_cb(cb), m_count(count) { if (m_cb) m_cb->begin(id); }

◆ ~CustomBenchmarkGuard()

PMonUtils::CustomBenchmarkGuard::~CustomBenchmarkGuard ( )
inline

Definition at line 121 of file CustomBenchmark.h.

121 { if (m_cb) m_cb->end(m_count); }

Member Data Documentation

◆ m_cb

CustomBenchmark* PMonUtils::CustomBenchmarkGuard::m_cb
private

Definition at line 123 of file CustomBenchmark.h.

◆ m_count

int PMonUtils::CustomBenchmarkGuard::m_count
private

Definition at line 124 of file CustomBenchmark.h.


The documentation for this class was generated from the following file:
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
PMonUtils::CustomBenchmarkGuard::m_cb
CustomBenchmark * m_cb
Definition: CustomBenchmark.h:123
PMonUtils::CustomBenchmark::end
void end(int count)
Definition: CustomBenchmark.h:73
PMonUtils::CustomBenchmarkGuard::m_count
int m_count
Definition: CustomBenchmark.h:124
PMonUtils::CustomBenchmark::begin
void begin(unsigned id)
Definition: CustomBenchmark.h:67