class InternedCategory
Defined at line 24 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_category.h
Forward declarations.
Public Members
static const uint32_t kInvalidIndex
Public Methods
void InternedCategory (const InternedString & label)
Defined at line 28 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_category.h
const InternedString & label ()
Defined at line 30 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_category.h
const char * string ()
Defined at line 31 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_category.h
uint32_t index ()
Defined at line 32 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_category.h
void SetIndex (uint32_t index, uint32_t expected)
Sets the index for the category if it has the expected previous value. This provides a simple
way to prevent re-initialization if RegisterCategories() is called more than once, while also
providing a way to override the value. This can be removed once the index can be automatically
derived from the section offset when the kernel supports extensible categories.
Defined at line 38 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_category.h
const InternedCategory * section_begin ()
Returns the begin and end pointers of the interned category section.
Defined at line 43 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_category.h
const InternedCategory * section_end ()
Defined at line 46 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_category.h
cpp20::span<const InternedCategory> Iterate ()
Defined at line 58 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_category.h
void SetRegisterCallback (RegisterCallback callback)
Sets the callback to register categories in the host trace environment.
Defined at line 66 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_category.h
void SetRegisterCallback (RegisterCallback callback)
Sets the callback to register categories in the host trace environment.
Defined at line 66 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_category.h
void RegisterCategories ()
Registers categories in the host trace environment. May be called more than once (e.g. when
loading shared libraries that provide interned categories). The host callback is expected to
handle categories that are already registered.
Defined at line 73 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_category.h