Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
benchmarking
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
12
namespace
benchmarking
{
13
14
int
Main
(
int
argc,
char
** argv) {
15
fml::InstallCrashHandler
();
16
#if !defined(FML_OS_ANDROID)
17
fml::CommandLine
cmd =
fml::CommandLineFromPlatformOrArgcArgv
(argc,
argv
);
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
29
int
main
(
int
argc,
char
** argv) {
30
return
benchmarking::Main
(argc,
argv
);
31
}
benchmarking.h
fml::CommandLine
Definition
command_line.h:56
argv
char ** argv
Definition
library.h:9
benchmarking
Definition
benchmarking.cc:12
benchmarking::Main
int Main(int argc, char **argv)
Definition
benchmarking.cc:14
fml::icu::InitializeICU
void InitializeICU(const std::string &icu_data_path)
Definition
icu_util.cc:102
fml::InstallCrashHandler
void InstallCrashHandler()
Definition
backtrace.cc:126
fml::CommandLineFromPlatformOrArgcArgv
CommandLine CommandLineFromPlatformOrArgcArgv(int argc, const char *const *argv)
Definition
command_line.h:242
main
Definition
main.py:1
Generated on Fri Apr 26 2024 06:14:01 for Flutter Engine by
1.9.8