Flutter Engine
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

 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 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 (std::string symbol_prefix, std::string native_lib_path)
 
Settings flutter::SettingsFromCommandLine (const fml::CommandLine &command_line)
 

Variables

static const std::string gAllowedDartFlags []
 

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.

◆ 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

◆ gAllowedDartFlags

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

Definition at line 54 of file switches.cc.

Referenced by flutter::IsAllowedDartVMFlag().