Proxy object that calls start() on creation and stop() on destruction.
More...
#include <Profiler.h>
Proxy object that calls start() on creation and stop() on destruction.
◆ Proxy()
◆ ~Proxy()
molpro::profiler::Profiler::Proxy::~Proxy |
( |
| ) |
|
|
inline |
◆ 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
-
operations | The number of additional operations. |
◆ push()
Proxy molpro::profiler::Profiler::Proxy::push |
( |
const std::string & |
name | ) |
|
|
inline |
◆ prof
Profiler& molpro::profiler::Profiler::Proxy::prof |
reference to the underlying profiler