7#include "flutter/common/settings.h"
8#include "flutter/fml/command_line.h"
10#ifndef FLUTTER_SHELL_COMMON_SWITCHES_H_
11#define FLUTTER_SHELL_COMMON_SWITCHES_H_
16#ifndef DEF_SWITCHES_START
17#define DEF_SWITCHES_START enum class Switch {
20#define DEF_SWITCH(swtch, flag, help) swtch,
22#ifndef DEF_SWITCHES_END
23#define DEF_SWITCHES_END Sentinel, } ;
29 "aot-shared-library-name",
30 "Name of the *.so containing AOT compiled Dart assets.")
31DEF_SWITCH(AotVMServiceSharedLibraryName,
32 "aot-vmservice-shared-library-
name",
33 "Name of the *.so containing AOT compiled Dart assets for "
34 "launching the
service isolate.")
35DEF_SWITCH(SnapshotAssetPath,
36 "snapshot-asset-
path",
37 "
Path to the directory containing the four files specified by "
38 "VmSnapshotData, VmSnapshotInstructions, "
39 "VmSnapshotInstructions and IsolateSnapshotInstructions.")
40DEF_SWITCH(VmSnapshotData,
42 "The VM snapshot
data that will be memory mapped as
read-only. "
43 "SnapshotAssetPath must be present.")
44DEF_SWITCH(VmSnapshotInstructions,
46 "The VM instructions snapshot that will be memory mapped as
read "
47 "and executable. SnapshotAssetPath must be present.")
48DEF_SWITCH(IsolateSnapshotData,
49 "isolate-snapshot-
data",
50 "The isolate snapshot
data that will be memory mapped as
read-only. "
51 "SnapshotAssetPath must be present.")
52DEF_SWITCH(IsolateSnapshotInstructions,
53 "isolate-snapshot-instr",
54 "The isolate instructions snapshot that will be memory mapped as "
55 "
read and executable. SnapshotAssetPath must be present.")
56DEF_SWITCH(CacheDirPath,
59 "This is different from the persistent_cache_path in embedder.
h, "
60 "which is used for Skia shader
cache.")
62DEF_SWITCH(ICUSymbolPrefix,
64 "Prefix for the symbols representing ICU
data linked into the "
66DEF_SWITCH(ICUNativeLibPath,
67 "icu-native-lib-
path",
71 "
Flags passed directly to the Dart VM without being interpreted "
72 "by the Flutter shell.")
73DEF_SWITCH(DeviceVMServiceHost,
75 "The hostname/IP address on which the Dart VM Service should "
76 "be served. If not set, defaults to 127.0.0.1 or ::1 depending on "
77 "whether --
ipv6 is specified.")
81 DeviceObservatoryHost,
83 "(deprecated) The hostname/IP address on which the Dart VM Service should "
84 "be served. If not set, defaults to 127.0.0.1 or ::1 depending on "
85 "whether --
ipv6 is specified.")
86DEF_SWITCH(DeviceVMServicePort,
88 "
A custom Dart VM Service
port. The default is to pick
a randomly "
89 "available open
port.")
92DEF_SWITCH(DeviceObservatoryPort,
94 "(deprecated)
A custom Dart VM Service
port. The default is to pick "
96 "available open
port.")
100 "Disable the Dart VM Service. The Dart VM Service is never available "
104DEF_SWITCH(DisableObservatory,
105 "disable-observatory",
106 "(deprecated) Disable the Dart VM Service. The Dart VM Service is "
109DEF_SWITCH(DisableVMServicePublication,
114DEF_SWITCH(DisableObservatoryPublication,
116 "(deprecated) Disable mDNS Dart VM Service
publication.")
119 "Bind to the IPv6 localhost address for the Dart VM Service. "
121DEF_SWITCH(EnableDartProfiling,
122 "enable-
dart-profiling",
123 "Enable Dart profiling. Profiling information can be viewed from "
124 "Dart / Flutter DevTools.")
125DEF_SWITCH(EndlessTraceBuffer,
127 "Enable an endless trace
buffer. The default is
a ring
buffer. "
128 "This is useful when very old events need to viewed. For
example, "
129 "during application launch. Memory
usage will continue to grow "
130 "indefinitely however.")
131DEF_SWITCH(EnableSoftwareRendering,
132 "enable-software-rendering",
133 "Enable rendering using the Skia software backend. This is useful "
134 "when testing Flutter on emulators. By default, Flutter will "
135 "attempt to either use OpenGL, Metal, or Vulkan.")
138 "Start app with an specific
route defined on the framework")
139DEF_SWITCH(SkiaDeterministicRendering,
140 "
skia-deterministic-rendering",
141 "Skips the call to
SkGraphics::
Init(), thus avoiding swapping out "
142 "some Skia
function pointers based on available
CPU features. This "
143 "is used to obtain 100% deterministic behavior in Skia rendering.")
144DEF_SWITCH(FlutterAssetsDir,
146 "
Path to the Flutter assets directory.")
148DEF_SWITCH(LogTag, "log-tag", "Tag associated with log messages.")
149DEF_SWITCH(DisableServiceAuthCodes,
151 "Disable the requirement for authentication codes for communicating"
153DEF_SWITCH(EnableServicePortFallback,
156 " binding to
a specified
port fails.")
157DEF_SWITCH(StartPaused,
159 "Start the application paused in the Dart debugger.")
160DEF_SWITCH(EnableCheckedMode, "enable-checked-
mode", "Enable checked
mode.")
161DEF_SWITCH(TraceStartup,
163 "Trace early application lifecycle. Automatically switches to an "
167 "Trace Skia calls. This is useful when debugging the GPU threed."
168 "By default, Skia
tracing is not enabled to reduce the number of "
170DEF_SWITCH(TraceSkiaAllowlist,
172 "Filters out all Skia trace
event categories except those that are "
173 "specified in this comma separated list.")
177 "Filters out all trace events except those that are specified in this "
178 "comma separated list of allowed prefixes.")
179DEF_SWITCH(DumpSkpOnShaderCompilation,
181 "Automatically
dump the
skp that triggers new shader compilations. "
182 "This is useful for writing custom ShaderWarmUp to reduce jank. "
183 "By default, this is not enabled to reduce the overhead. ")
186 "Only
cache the shader in
SkSL instead of binary or GLSL. This "
187 "should only be used during development phases. The generated SkSLs "
188 "can later be used in the release
build for shader precompilation "
189 "at launch in order to eliminate the shader-
compile jank.")
190DEF_SWITCH(PurgePersistentCache,
192 "Remove all existing persistent
cache. This is mainly for debugging "
193 "purposes such as reproducing the shader
compilation jank.")
197 "Trace to the system tracer (instead of the timeline) on platforms where "
198 "such
a tracer is available. Currently only supported on Android and "
200DEF_SWITCH(TraceToFile,
202 "Write the timeline trace to
a file at the specified
path. The
file "
203 "will be in Perfetto'
s proto
format; it will be possible to
load "
204 "the
file into Perfetto'
s trace viewer.")
205DEF_SWITCH(UseTestFonts,
208 "consistent results across various platforms. Enabling this option "
209 "will
make font resolution default to the Ahem
test font on all "
210 "platforms (See https:
211 "This option is only available on the desktop
test shells.")
212DEF_SWITCH(DisableAssetFonts,
214 "Prevents
usage of any non-
test fonts unless they were explicitly "
215 "Loaded via
dart:
ui font APIs. This option is only available on the "
216 "desktop
test shells.")
217DEF_SWITCH(PrefetchedDefaultFontManager,
219 "Indicates whether the embedding started
a prefetch of the "
221DEF_SWITCH(VerboseLogging,
223 "By default, only errors are logged. This
flag enabled logging at "
224 "all severity levels. This is NOT
a per shell
flag and affect log "
225 "levels for all shells in the
process.")
226DEF_SWITCH(RunForever,
228 "In non-interactive
mode, keep the shell running after the Dart "
229 "script has completed.")
230DEF_SWITCH(DisableDartAsserts,
231 "disable-
dart-asserts",
232 "Dart code runs with assertions enabled when the runtime
mode is "
233 "
debug. In profile and release product modes, assertions are "
234 "disabled. This
flag may be specified if the user wishes to
run "
235 "with assertions disabled in the
debug product
mode (i.e. with JIT "
237DEF_SWITCH(EnableSerialGC,
239 "On low power devices with low core
counts, running concurrent "
240 "GC tasks on threads can cause them to contend with the UI thread "
241 "which could potentially lead to jank. This option turns off all "
242 "concurrent GC activities")
243DEF_SWITCH(DisallowInsecureConnections,
244 "disallow-insecure-connections",
245 "By default,
dart:io allows all socket connections. If this
switch "
246 "is set, all insecure connections are rejected.")
247DEF_SWITCH(DomainNetworkPolicy,
249 "JSON encoded network
policy per domain. This overrides the "
250 "DisallowInsecureConnections
switch. Embedder can specify whether "
251 "to allow or disallow insecure connections at
a domain level.")
254 "force-multithreading",
255 "Uses separate threads for the platform, UI, GPU and IO task runners. "
256 "By default,
a single thread is used for all task runners. Only available "
257 "in the flutter_tester.")
258DEF_SWITCH(OldGenHeapSize,
260 "The
size limit in megabytes for the Dart VM old
gen heap space.")
262DEF_SWITCH(ResourceCacheMaxBytesThreshold,
263 "resource-
cache-
max-bytes-threshold",
264 "The
max bytes threshold of resource
cache, or 0 for unlimited.")
265DEF_SWITCH(EnableImpeller,
267 "Enable the Impeller renderer on supported platforms. Ignored if "
268 "Impeller is not supported on the platform.")
269DEF_SWITCH(ImpellerBackend,
271 "Requests
a particular Impeller backend on platforms that support "
273DEF_SWITCH(EnableVulkanValidation,
275 "Enable loading Vulkan
validation layers. The layers must be "
276 "available to the application and loadable. On non-Vulkan
backends, "
277 "this
flag does nothing.")
278DEF_SWITCH(EnableOpenGLGPUTracing,
280 "Enable
tracing of GPU execution time when using the Impeller "
282DEF_SWITCH(EnableVulkanGPUTracing,
284 "Enable
tracing of GPU execution time when using the Impeller "
288 "When the last shell shuts down, the shared VM is leaked by default "
289 "(the leak_vm in VM settings is true). To clean up the leak VM, set "
290 "this value to false.")
294 "The minimum number of samples to require for multisampled anti-aliasing. "
295 "Setting this value to 0 or 1 disables MSAA. If it is not 0 or 1, it must "
296 "be one of 2, 4, 8, or 16. However, if the GPU does not support the "
297 "requested sampling value, MSAA will be disabled.")
298DEF_SWITCH(EnableEmbedderAPI,
299 "enable-embedder-api",
300 "Enable the embedder api. Defaults to false. iOS only.")
301DEF_SWITCH(EnablePlatformIsolates,
302 "enable-platform-isolates",
303 "Enable support for isolates that
run on the platform thread.")
306void PrintUsage(const
std::
string& executable_name);
static bool read(SkStream *stream, void *buffer, size_t amount)
constexpr SkSLTestFlags CPU
static void dump(const float m[20], SkYUVColorSpace cs, bool rgb2yuv)
FlutterSemanticsFlag flag
FlutterSemanticsFlag flags
Dart_NativeFunction function
static float max(float r, float g, float b)
static sk_sp< SkImage > make(sk_sp< SkColorSpace > cs)
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 The size limit in megabytes for the Dart VM old gen heap space enable Enable the Impeller renderer on supported platforms Ignored if Impeller is not supported on the platform enable vulkan Enable loading Vulkan validation layers The layers must be available to the application and loadable On non Vulkan this flag does nothing enable vulkan gpu tracing
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 port
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For example
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port Allow the VM service to fallback to automatic port selection if binding to a specified port fails trace Trace early application lifecycle Automatically switches to an endless trace buffer trace skia Filters out all Skia trace event categories except those that are specified in this comma separated list dump skp on shader Automatically dump the skp that triggers new shader compilations This is useful for writing custom ShaderWarmUp to reduce jank By this is not enabled to reduce the overhead purge persistent cache
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port Allow the VM service to fallback to automatic port selection if binding to a specified port fails trace startup
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 manager
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 forever
Settings SettingsFromCommandLine(const fml::CommandLine &command_line)
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
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 host
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port Allow the VM service to fallback to automatic port selection if binding to a specified port fails trace Trace early application lifecycle Automatically switches to an endless trace buffer trace skia Filters out all Skia trace event categories except those that are specified in this comma separated list dump skp on shader Automatically dump the skp that triggers new shader compilations This is useful for writing custom ShaderWarmUp to reduce jank By this is not enabled to reduce the overhead purge persistent Remove all existing persistent cache This is mainly for debugging purposes such as reproducing the shader compilation jank trace to file
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port fallback
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 gc
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port Allow the VM service to fallback to automatic port selection if binding to a specified port fails trace Trace early application lifecycle Automatically switches to an endless trace buffer trace skia allowlist
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 counts
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port Allow the VM service to fallback to automatic port selection if binding to a specified port fails trace Trace early application lifecycle Automatically switches to an endless trace buffer trace skia Filters out all Skia trace event categories except those that are specified in this comma separated list dump skp on shader compilation
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 policy
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir
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 mode
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 service
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
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 publication
it will be possible to load the file into Perfetto s trace viewer disable asset fonts
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 The size limit in megabytes for the Dart VM old gen heap space enable Enable the Impeller renderer on supported platforms Ignored if Impeller is not supported on the platform enable vulkan Enable loading Vulkan validation layers The layers must be available to the application and loadable On non Vulkan backends
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 h
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 ipv6
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port Allow the VM service to fallback to automatic port selection if binding to a specified port fails trace Trace early application lifecycle Automatically switches to an endless trace buffer trace skia Filters out all Skia trace event categories except those that are specified in this comma separated list dump skp on shader Automatically dump the skp that triggers new shader compilations This is useful for writing custom ShaderWarmUp to reduce jank By this is not enabled to reduce the overhead purge persistent Remove all existing persistent cache This is mainly for debugging purposes such as reproducing the shader compilation jank trace to Write the timeline trace to a file at the specified path The file will be in Perfetto s proto format
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however route
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 The size limit in megabytes for the Dart VM old gen heap space enable Enable the Impeller renderer on supported platforms Ignored if Impeller is not supported on the platform enable vulkan validation
const std::string_view FlagForSwitch(Switch swtch)
#define DEF_SWITCH(p_swtch, p_flag, p_help)
#define DEF_SWITCHES_START
static void usage(char *argv0)
static void process(const char *inPath, const char *lexer, const char *token, const char *hPath, const char *cppPath)
flags to indicate/promise which of the optional texture coordinates or colors will be supplied during...