25 #ifndef PXR_BASE_TRACE_CATEGORY_H 26 #define PXR_BASE_TRACE_CATEGORY_H 32 #include "pxr/base/trace/api.h" 34 #include "pxr/base/trace/stringHash.h" 41 PXR_NAMESPACE_OPEN_SCOPE
59 const char (&str)[N]) {
83 std::multimap<TraceCategoryId, std::string> _idToNames;
88 PXR_NAMESPACE_CLOSE_SCOPE
90 #endif // PXR_BASE_TRACE_CATEGORY_H Manage a single instance of an object.
static constexpr TraceCategoryId CreateTraceCategoryId(const char(&str)[N])
Computes an id for the given a string literal str.
Manage a single instance of an object (see.
static TRACE_API TraceCategory & GetInstance()
Singleton accessor.
TRACE_API std::vector< std::string > GetCategories(TraceCategoryId id) const
Returns all names associated with the id.
TRACE_API void RegisterCategory(TraceCategoryId id, const std::string &name)
Associates the id with name.
This singleton class provides a way to mark TraceEvent instances with category Ids which can be used ...
static constexpr std::uint32_t Hash(const char(&str)[N])
Computes a compile time hash of str.
uint32_t TraceCategoryId
Categories that a TraceReporter can use to filter events.