Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions | Variables
switches.cc File Reference
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
#include "flutter/fml/native_library.h"
#include "flutter/fml/paths.h"
#include "flutter/fml/size.h"
#include "flutter/shell/version/version.h"
#include "flutter/shell/common/switches.h"

Go to the source code of this file.

Classes

struct  SwitchDesc
 

Namespaces

namespace  flutter
 

Macros

#define DEF_SWITCHES_START   static const struct SwitchDesc gSwitchDescs[] = {
 
#define DEF_SWITCH(p_swtch, p_flag, p_help)    { flutter::Switch:: p_swtch, p_flag, p_help },
 
#define DEF_SWITCHES_END   };
 

Functions

void flutter::PrintUsage (const std::string &executable_name)
 
const std::string_view flutter::FlagForSwitch (Switch swtch)
 
static std::vector< std::string > flutter::ParseCommaDelimited (const std::string &input)
 
static bool flutter::IsAllowedDartVMFlag (const std::string &flag)
 
template<typename T >
static bool flutter::GetSwitchValue (const fml::CommandLine &command_line, Switch sw, T *result)
 
std::unique_ptr< fml::Mappingflutter::GetSymbolMapping (const std::string &symbol_prefix, const std::string &native_lib_path)
 
Settings flutter::SettingsFromCommandLine (const fml::CommandLine &command_line)
 

Variables

static const std::string kAllowedDartFlags []
 

Macro Definition Documentation

◆ DEF_SWITCH

#define DEF_SWITCH (   p_swtch,
  p_flag,
  p_help 
)     { flutter::Switch:: p_swtch, p_flag, p_help },

Definition at line 34 of file switches.cc.

35 { flutter::Switch:: p_swtch, p_flag, p_help },

◆ DEF_SWITCHES_END

#define DEF_SWITCHES_END   };

Definition at line 36 of file switches.cc.

◆ DEF_SWITCHES_START

#define DEF_SWITCHES_START   static const struct SwitchDesc gSwitchDescs[] = {

Definition at line 33 of file switches.cc.

Variable Documentation

◆ kAllowedDartFlags

const std::string kAllowedDartFlags[]
static
Initial value:
= {
"--enable-isolate-groups",
"--no-enable-isolate-groups",
"--enable_mirrors",
"--enable-service-port-fallback",
"--max_profile_depth",
"--profile_period",
"--random_seed",
"--sample-buffer-duration",
"--trace-kernel",
"--trace-reload",
"--trace-reload-verbose",
"--write-service-info",
"--max_subtype_cache_entries",
"--enable-asserts",
}

Definition at line 52 of file switches.cc.

52 {
53 "--enable-isolate-groups",
54 "--no-enable-isolate-groups",
55 "--enable_mirrors",
56 "--enable-service-port-fallback",
57 "--max_profile_depth",
58 "--profile_period",
59 "--random_seed",
60 "--sample-buffer-duration",
61 "--trace-kernel",
62 "--trace-reload",
63 "--trace-reload-verbose",
64 "--write-service-info",
65 "--max_subtype_cache_entries",
66 "--enable-asserts",
67};