![]() |
A class which records a begin event when it is constructed, and a matching end event when it is destructed. More...
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. More... | |
| TraceAuto (const TfToken &key) | |
| Constructor taking a TfToken key. More... | |
| TraceAuto (const std::string &key) | |
| Constructor taking a string key. More... | |
| TraceAuto (const TraceAuto &)=delete | |
| TraceAuto & | operator= (const TraceAuto &)=delete |
| TraceAuto (TraceAuto &&)=delete | |
| TraceAuto & | operator= (TraceAuto &&)=delete |
| ~TraceAuto () | |
| Destructor. More... | |
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 |