Flutter Engine
benchmarking.cc
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "benchmarking.h"
6 
7 #include "flutter/fml/backtrace.h"
8 #include "flutter/fml/command_line.h"
9 #include "flutter/fml/icu_util.h"
10 
11 namespace benchmarking {
12 
13 int Main(int argc, char** argv) {
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 }
23 
24 } // namespace benchmarking
25 
26 int main(int argc, char** argv) {
27  return benchmarking::Main(argc, argv);
28 }
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
int main(int argc, char **argv)
Definition: benchmarking.cc:26
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
int Main(int argc, char **argv)
Definition: benchmarking.cc:13
std::string GetOptionValueWithDefault(std::string_view name, std::string_view default_value) const
Definition: command_line.cc:72