43 default:
return "[???]";
52 switch (
fSlotInfo[slotIndex].numberKind) {
55 static_assert(
sizeof(uintValue) ==
sizeof(valueBits));
56 memcpy(&uintValue, &valueBits,
sizeof(uintValue));
61 static_assert(
sizeof(floatValue) ==
sizeof(valueBits));
62 memcpy(&floatValue, &valueBits,
sizeof(floatValue));
74 switch (
fSlotInfo[slotIndex].numberKind) {
76 return value ?
"true" :
"false";
104 for (
size_t index = 0; index <
fSlotInfo.size(); ++index) {
112 switch (
info.numberKind) {
121 if (
info.rows != 1) {
137 for (
size_t index = 0; index <
fFuncInfo.size(); ++index) {
150 std::string indent =
"";
152 int data0 = traceInfo.data[0];
153 int data1 = traceInfo.data[1];
154 switch (traceInfo.op) {
178 indent.resize(indent.size() - 2);
193 indent.push_back(
' ');
216 for (
size_t index = 0; index <
fSlotInfo.size(); ++index) {
224 if (
info.groupIndex !=
info.componentIndex) {
229 if (
info.fnReturnValue >= 0) {
238 for (
size_t index = 0; index <
fFuncInfo.size(); ++index) {
249 for (
size_t index = 0; index <
fTraceInfo.size(); ++index) {
256 while (lastDataIdx >= 0 && !trace.
data[lastDataIdx]) {
259 for (
int dataIdx = 0; dataIdx <= lastDataIdx; ++dataIdx) {
320 if (!
name || !columns || !rows || !index || !kind || !
line) {
325 info.columns = **columns;
327 info.componentIndex = **index;
328 info.groupIndex = groupIdx ? **groupIdx :
info.componentIndex;
331 info.fnReturnValue = retval ? **retval : -1;
369 if (!element || element->size() < 1 || element->size() > (1 +
std::size(
info.data))) {
377 for (
size_t elemIdx = 1; elemIdx < element->size(); ++elemIdx) {
382 info.data[elemIdx - 1] = **dataVal;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static constexpr char kTraceVersion[]
sk_sp< SkData > SkCopyStreamToData(SkStream *stream)
void appendS32(int32_t value)
void appendNString(char const (&value)[N])
void beginArray(const char *name=nullptr, bool multiline=true)
void beginObject(const char *name=nullptr, bool multiline=true)
void appendString(const char *value, size_t size)
void writeTrace(SkWStream *w) const override
std::string getSlotValue(int slotIndex, int32_t value) const
bool readTrace(SkStream *r)
std::vector< FunctionDebugInfo > fFuncInfo
void setSource(const std::string &source)
std::vector< TraceInfo > fTraceInfo
void setTraceCoord(const SkIPoint &coord)
std::vector< std::string > fSource
std::vector< SlotDebugInfo > fSlotInfo
double interpretValueBits(int slotIndex, int32_t valueBits) const
void dump(SkWStream *o) const override
std::string slotValueToString(int slotIndex, double value) const
std::string getSlotComponentSuffix(int slotIndex) const
bool writeDecAsText(int32_t)
bool writeText(const char text[])
const Value & root() const
DEF_SWITCHES_START aot vmservice shared library name
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
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
static SkString to_string(int n)
std::shared_ptr< const fml::Mapping > data