Helper structure to print the tracing statistics. More...
#include <tracer.hpp>
Public Member Functions | |
printer (const printer &)=delete | |
printer & | operator= (const printer &)=delete |
printer (const tracer *const tracer__) | |
~printer () | |
Public Attributes | |
const tracer *const | tracer_ |
The tracer, whose statistics to print. More... | |
Helper structure to print the tracing statistics.
When the constructor gets a valid tracer pointer it prints the tracing statistics in its destructor. This allows the structure to be initialised at the beginning of a scope and print the statistics once the scope is left. (This makes it easier to write the tracing macros.)
Definition at line 37 of file tracer.hpp.
|
delete |
|
explicit |
Definition at line 21 of file tracer.cpp.
tracer::printer::~printer | ( | ) |
Definition at line 26 of file tracer.cpp.
References tracer::counters, tracer::function, tracer::run, and tracer_.
const tracer* const tracer::printer::tracer_ |
The tracer, whose statistics to print.
Definition at line 47 of file tracer.hpp.
Referenced by ~printer().