Flutter Engine
The 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/build_config.h"
9#include "flutter/fml/command_line.h"
10#include "flutter/fml/icu_util.h"
11
12namespace benchmarking {
13
14int Main(int argc, char** argv) {
16#if !defined(FML_OS_ANDROID)
18 std::string icudtl_path =
19 cmd.GetOptionValueWithDefault("icu-data-file-path", "icudtl.dat");
20 fml::icu::InitializeICU(icudtl_path);
21#endif
23 ::benchmark::RunSpecifiedBenchmarks();
24 return 0;
25}
26
27} // namespace benchmarking
28
29int main(int argc, char** argv) {
30 return benchmarking::Main(argc, argv);
31}
int main(int argc, char **argv)
Definition: benchmarking.cc:29
char ** argv
Definition: library.h:9
int Main(int argc, char **argv)
Definition: benchmarking.cc:14
void InitializeICU(const std::string &icu_data_path)
Definition: icu_util.cc:102
void InstallCrashHandler()
Definition: backtrace.cc:126
CommandLine CommandLineFromPlatformOrArgcArgv(int argc, const char *const *argv)
Definition: command_line.h:242
void Initialize(zx::channel directory_request, std::optional< zx::eventpair > view_ref)
Initializes Dart bindings for the Fuchsia application model.
Definition: fuchsia.cc:103