90 {
91
92
93
94
95 int size =
static_cast<int>(
sizeof(
TraceEvent) + numArgs *
sizeof(TraceEventArg));
96 for (
int i = 0;
i < numArgs; ++
i) {
99 }
100 }
101
103
106
108 traceEvent->fPhase = phase;
109 traceEvent->fNumArgs = numArgs;
110 traceEvent->fSize =
size;
111 traceEvent->fName =
name;
112 traceEvent->fID =
id;
113 traceEvent->fClockBegin = std::chrono::steady_clock::now().time_since_epoch().count();
114 traceEvent->fClockEnd = 0;
116
117 TraceEventArg* traceEventArgs = traceEvent->args();
118 char* stringTableBase = traceEvent->stringTable();
119 char* stringTable = stringTableBase;
120 for (
int i = 0;
i < numArgs; ++
i) {
121 traceEventArgs[
i].fArgName = argNames[
i];
122 traceEventArgs[
i].fArgType = argTypes[
i];
124
125 traceEventArgs[
i].fArgValue = stringTable - stringTableBase;
126
127
129 while (*valueStr) {
130 *stringTable++ = *valueStr++;
131 }
132 *stringTable++ = 0;
133 } else {
134 traceEventArgs[
i].fArgValue = argValues[
i];
135 }
136 }
137
138 return this->appendEvent(storagePtr,
size);
139}
static constexpr T SkAlign8(T x)
SkThreadID SkGetThreadID()
#define TRACE_VALUE_TYPE_COPY_STRING
DEF_SWITCHES_START aot vmservice shared library name
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
void TraceEvent(TraceArg category, TraceArg name, size_t flow_id_count, const uint64_t *flow_ids, Args... args)
static const char * TraceValueAsString(uint64_t value)