ATLAS Offline Software
Loading...
Searching...
No Matches
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); }
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:146

◆ ~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: