Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
22 benchmark::Initialize(&argc, argv);
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}
char ** argv
Definition library.h:9
int Main(int argc, char **argv)
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 main.py:1