|
|
Donner
C++20 SVG rendering library
|
Implements a simple RAII execution time tracer. More...
Public Member Functions | |
| Trace (const char *name) | |
| Start a new trace with the given name. | |
| Trace (const Trace &)=delete | |
| Trace (Trace &&)=delete | |
| Trace & | operator= (const Trace &)=delete |
| Trace & | operator= (Trace &&)=delete |
| ~Trace () | |
| Stop the trace. | |
| void | stop () |
| Explicitly stop the trace, to stop before this object is destructed. | |
Implements a simple RAII execution time tracer.
Usage:
This will print the execution time of the code within the block.
|
inline |
Explicitly stop the trace, to stop before this object is destructed.
Once stopped, the trace cannot be restarted.
Example: