24 #ifndef PXR_BASE_TF_SCOPE_DESCRIPTION_H
25 #define PXR_BASE_TF_SCOPE_DESCRIPTION_H
73 TfScopeDescription(
char const *description,
95 friend inline TfScopeDescription *
99 friend inline char const *
101 return d->_description;
109 inline void _Pop()
const;
111 std::optional<std::string> _ownedString;
112 char const *_description;
115 TfScopeDescription *_prev;
122 TF_API std::vector<std::string>
128 TF_API std::vector<std::string>
133 #define TF_DESCRIBE_SCOPE(...) \
134 TfScopeDescription __scope_description__ \
135 (Tf_DescribeScopeFormat(__VA_ARGS__), TF_CALL_CONTEXT); \
137 template <
typename... Args>
157 #endif // PXR_BASE_TF_SCOPE_DESCRIPTION_H
TF_API std::string TfStringPrintf(const char *fmt,...)
TF_API void SetDescription(std::string const &description)
friend TfScopeDescription * Tf_GetPreviousScopeDescription(TfScopeDescription *d)
TF_API ~TfScopeDescription()
GLsizei const GLchar *const * string
friend TfCallContext const & Tf_GetScopeDescriptionContext(TfScopeDescription *d)
TF_API std::vector< std::string > TfGetCurrentScopeDescriptionStack()
friend char const * Tf_GetScopeDescriptionText(TfScopeDescription *d)
std::string Tf_DescribeScopeFormat(const char *fmt, Args &&...args)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
TF_API std::vector< std::string > TfGetThisThreadScopeDescriptionStack()
#define PXR_NAMESPACE_CLOSE_SCOPE
**If you just want to fire and args