class InternedString
Defined at line 20 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_string.h
Represents an internalized string that may be referenced in traces by id to improve the
efficiency of labels and other strings.
Public Members
static const uint16_t kInvalidId
static const size_t kMaxStringLength
Public Methods
void InternedString (const char * string)
Defined at line 25 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_string.h
uint16_t id ()
Returns the numeric id for this string ref.
Defined at line 28 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_string.h
const char * string ()
Returns the string for this string ref.
Defined at line 31 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_string.h
const InternedString * section_begin ()
Returns the begin and end pointers of the interned string section.
Defined at line 34 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_string.h
const InternedString * section_end ()
Defined at line 37 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_string.h
cpp20::span<const InternedString> Iterate ()
Defined at line 52 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_string.h
void SetRegisterCallback (RegisterCallback callback)
Sets the callback to register strings in the host trace environment.
Defined at line 60 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_string.h
void SetRegisterCallback (RegisterCallback callback)
Sets the callback to register strings in the host trace environment.
Defined at line 60 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_string.h
void RegisterStrings ()
Registers strings in the host trace environment. May be called more than once (e.g. when
loading shared libraries that provide interned strings). The host callback is expected to
handle strings that are already registered.
Defined at line 67 of file ../../src/performance/lib/fxt/include/lib/fxt/interned_string.h