Flutter Engine
The Flutter Engine
Functions
SkGetExecutablePath_mac.cpp File Reference
#include "tools/SkGetExecutablePath.h"
#include <mach-o/dyld.h>

Go to the source code of this file.

Functions

std::string SkGetExecutablePath ()
 

Function Documentation

◆ SkGetExecutablePath()

std::string SkGetExecutablePath ( )

Returns a fully-qualified path to the currently-running executable.

Definition at line 11 of file SkGetExecutablePath_mac.cpp.

11 {
12 uint32_t size = 0;
13 _NSGetExecutablePath(nullptr, &size);
14
15 std::string result(size, '\0');
16 if (_NSGetExecutablePath(result.data(), &size) != 0) {
17 result.clear();
18 }
19 return result;
20}
GAsyncResult * result
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
Definition: switches.h:259