25 #ifndef PXR_BASE_TRACE_CATEGORY_H
26 #define PXR_BASE_TRACE_CATEGORY_H
59 const char (&str)[
N]) {
83 std::multimap<TraceCategoryId, std::string> _idToNames;
90 #endif // PXR_BASE_TRACE_CATEGORY_H
static constexpr std::uint32_t Hash(const char(&str)[N])
Computes a compile time hash of str.
GLsizei const GLchar *const * string
TRACE_API void RegisterCategory(TraceCategoryId id, const std::string &name)
TRACE_API std::vector< std::string > GetCategories(TraceCategoryId id) const
Returns all names associated with the id.
static TRACE_API TraceCategory & GetInstance()
Singleton accessor.
TRACE_API_TEMPLATE_CLASS(TfSingleton< TraceCategory >)
GLuint const GLchar * name
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
GA_API const UT_StringHolder N
uint32_t TraceCategoryId
Categories that a TraceReporter can use to filter events.
static constexpr TraceCategoryId CreateTraceCategoryId(const char(&str)[N])
Computes an id for the given a string literal str.