#include <EventTracingPriv.h>
Helper class used by internal implementations of SkEventTracer to manage categories.
Definition at line 22 of file EventTracingPriv.h.
◆ SkEventTracingCategories()
SkEventTracingCategories::SkEventTracingCategories |
( |
| ) |
|
|
inline |
◆ getCategoryGroupEnabled()
uint8_t * SkEventTracingCategories::getCategoryGroupEnabled |
( |
const char * |
name | ) |
|
Definition at line 76 of file EventTracingPriv.cpp.
76 {
77 static_assert(0 == offsetof(CategoryState, fEnabled), "CategoryState");
78
79
82 }
83
84
85
86
88 for (
int i = 0;
i < fNumCategories; ++
i) {
90 return reinterpret_cast<uint8_t*
>(&fCategories[
i]);
91 }
92 }
93
94 if (fNumCategories >= kMaxCategories) {
95 SkDEBUGFAIL(
"Exhausted event tracing categories. Increase kMaxCategories.");
96 return reinterpret_cast<uint8_t*>(&fCategories[0]);
97 }
98
99 fCategories[fNumCategories].fEnabled =
101 ? 0
103
104 fCategories[fNumCategories].fName =
name;
105 return reinterpret_cast<uint8_t*>(&fCategories[fNumCategories++]);
106}
#define SkDEBUGFAIL(message)
static bool SkStrStartsWith(const char string[], const char prefixStr[])
#define TRACE_CATEGORY_PREFIX
static bool ShouldSkip(const SkTDArray< const char * > &strings, const char *name)
@ kEnabledForRecording_CategoryGroupEnabledFlags
DEF_SWITCHES_START aot vmservice shared library name
◆ getCategoryGroupName()
const char * SkEventTracingCategories::getCategoryGroupName |
( |
const uint8_t * |
categoryEnabledFlag | ) |
|
Definition at line 108 of file EventTracingPriv.cpp.
108 {
109 if (categoryEnabledFlag) {
110 return reinterpret_cast<const CategoryState*
>(categoryEnabledFlag)->
fName;
111 }
112 return nullptr;
113}
The documentation for this class was generated from the following files: