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