profiler  0.0
molpro::profiler::Profiler::Proxy Struct Reference

Proxy object that calls start() on creation and stop() on destruction. More...

#include <Profiler.h>

Collaboration diagram for molpro::profiler::Profiler::Proxy:

Public Member Functions

 Proxy (Profiler &prof, const std::string &name)
 
 ~Proxy ()
 
Proxy push (const std::string &name)
 Push a new proxy. More...
 
void operator+= (size_t operations)
 Advance the counter holding the notional number of operations executed in the code segment. More...
 
void operator++ ()
 Advance the counter holding the notional number of operations executed in the code segment. More...
 
size_t operator++ (int)
 

Public Attributes

Profilerprof
 reference to the underlying profiler More...
 

Detailed Description

Proxy object that calls start() on creation and stop() on destruction.

Constructor & Destructor Documentation

◆ Proxy()

molpro::profiler::Profiler::Proxy::Proxy ( Profiler prof,
const std::string &  name 
)
inline

◆ ~Proxy()

molpro::profiler::Profiler::Proxy::~Proxy ( )
inline

Member Function Documentation

◆ operator++() [1/2]

void molpro::profiler::Profiler::Proxy::operator++ ( )

Advance the counter holding the notional number of operations executed in the code segment.

◆ operator++() [2/2]

size_t molpro::profiler::Profiler::Proxy::operator++ ( int  )

◆ operator+=()

void molpro::profiler::Profiler::Proxy::operator+= ( size_t  operations)

Advance the counter holding the notional number of operations executed in the code segment.

Parameters
operationsThe number of additional operations.

◆ push()

Proxy molpro::profiler::Profiler::Proxy::push ( const std::string &  name)
inline

Push a new proxy.

Member Data Documentation

◆ prof

Profiler& molpro::profiler::Profiler::Proxy::prof

reference to the underlying profiler