class TrackEventCategoryRegistry

Defined at line 198 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_category_registry.h

Holds all the registered categories for one category namespace. See

PERFETTO_DEFINE_CATEGORIES for building the registry.

Public Members

static const size_t kInvalidCategoryIndex
static const size_t kDynamicCategoryIndex

Public Methods

void EnableCategoryForInstance (size_t category_index, uint32_t instance_index)

Turn tracing on or off for the given category in a track event data source

instance.

void DisableCategoryForInstance (size_t category_index, uint32_t instance_index)
void TrackEventCategoryRegistry (size_t category_count, const Category * categories, std::atomic<uint8_t> * state_storage)

Defined at line 200 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_category_registry.h

size_t category_count ()

Defined at line 212 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_category_registry.h

const Category * GetCategory (size_t index)

Returns a category based on its index.

Defined at line 215 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_category_registry.h

std::atomic<uint8_t> * GetCategoryState (size_t category_index)

Defined at line 227 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_category_registry.h

size_t Find (const char * name, bool is_dynamic)

Defined at line 245 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_category_registry.h

size_t Find (const DynamicCategory & , bool )

Defined at line 249 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_category_registry.h

bool ValidateCategories (size_t index)

Defined at line 253 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_category_registry.h