![]() |
|
A class which records a begin event when it is constructed, and a matching end event when it is destructed. More...
#include <trace.h>
Public Member Functions | |
TraceAuto (const char *funcName, const char *prettyFuncName, const std::string &name) | |
Constructor taking function name, pretty function name and a scope name. | |
TraceAuto (const TfToken &key) | |
Constructor taking a TfToken key. | |
TraceAuto (const std::string &key) | |
Constructor taking a string key. | |
TraceAuto (const TraceAuto &)=delete | |
TraceAuto & | operator= (const TraceAuto &)=delete |
TraceAuto (TraceAuto &&)=delete | |
TraceAuto & | operator= (TraceAuto &&)=delete |
~TraceAuto () | |
Destructor. | |
A class which records a begin event when it is constructed, and a matching end event when it is destructed.
It is intended to help ensure begin-end pairing correctness when the begin-end pairing can be expressed by automatic variable lifetime.
The TRACE_FUNCTION() macro may be even more convenient in some circumstances.
|
inline |
|
inlineexplicit |