Flutter Engine
benchmarking Namespace Reference

Classes

class  ScopedPauseTiming
 

Functions

int Main (int argc, char **argv)
 

Function Documentation

◆ Main()

int benchmarking::Main ( int  argc,
char **  argv 
)

Definition at line 13 of file benchmarking.cc.

References fml::CommandLineFromArgcArgv(), fml::CommandLine::GetOptionValueWithDefault(), fuchsia::dart::Initialize(), fml::icu::InitializeICU(), and fml::InstallCrashHandler().

Referenced by main().

13  {
16  benchmark::Initialize(&argc, argv);
17  std::string icudtl_path =
18  cmd.GetOptionValueWithDefault("icu-data-file-path", "icudtl.dat");
19  fml::icu::InitializeICU(icudtl_path);
20  ::benchmark::RunSpecifiedBenchmarks();
21  return 0;
22 }
void InstallCrashHandler()
Definition: backtrace.cc:134
CommandLine CommandLineFromArgcArgv(int argc, const char *const *argv)
Definition: command_line.h:222
void InitializeICU(const std::string &icu_data_path)
Definition: icu_util.cc:103
void Initialize(fidl::InterfaceHandle< fuchsia::sys::Environment > environment, zx::channel directory_request, std::optional< zx::eventpair > view_ref)
Initializes Dart bindings for the Fuchsia application model.
Definition: fuchsia.cc:103
std::string GetOptionValueWithDefault(std::string_view name, std::string_view default_value) const
Definition: command_line.cc:72