Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43355755
engine
提交
468b4317
E
engine
项目概览
weixin_43355755
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
468b4317
编写于
9月 13, 2021
作者:
K
Kaushik Iska
提交者:
GitHub
9月 13, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Parse the benchmarks on presubmit jobs (#28586)
上级
22730fbf
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
43 addition
and
8 deletion
+43
-8
.ci.yaml
.ci.yaml
+10
-0
testing/benchmark/bin/parse_and_send.dart
testing/benchmark/bin/parse_and_send.dart
+25
-3
testing/benchmark/pubspec.yaml
testing/benchmark/pubspec.yaml
+4
-1
testing/benchmark/upload_metrics.sh
testing/benchmark/upload_metrics.sh
+4
-4
未找到文件。
.ci.yaml
浏览文件 @
468b4317
...
...
@@ -142,6 +142,16 @@ targets:
presubmit
:
false
properties
:
build_host
:
"
true"
upload_metrics
:
"
true"
timeout
:
60
scheduler
:
luci
-
name
:
Linux Benchmarks (no-upload)
bringup
:
true
recipe
:
engine/engine_metrics
properties
:
build_host
:
"
true"
upload_metrics
:
"
false"
timeout
:
60
scheduler
:
luci
...
...
testing/benchmark/bin/parse_and_send.dart
浏览文件 @
468b4317
...
...
@@ -7,6 +7,7 @@
import
'dart:convert'
;
import
'dart:io'
;
import
'package:args/args.dart'
;
import
'package:metrics_center/metrics_center.dart'
;
import
'package:path/path.dart'
as
p
;
...
...
@@ -81,11 +82,32 @@ Future<FlutterDestination> connectFlutterDestination() async {
);
}
ArgParser
_serupOptions
(
)
{
final
ArgParser
parser
=
ArgParser
();
parser
.
addOption
(
'json'
,
mandatory:
true
,
help:
'Path to the benchmarks json file.'
,
);
parser
.
addFlag
(
'no-upload'
,
help:
'Upload the parsed benchmarks.'
,
defaultsTo:
false
,
);
return
parser
;
}
Future
<
void
>
main
(
List
<
String
>
args
)
async
{
if
(
args
.
length
!=
1
)
{
throw
'Must have one argument: <benchmark_json_file>'
;
final
ArgParser
parser
=
_serupOptions
();
final
ArgResults
options
=
parser
.
parse
(
args
);
final
String
json
=
options
[
'json'
]
as
String
;
final
PointsAndDate
pointsAndDate
=
await
parse
(
json
);
final
bool
noUpload
=
options
[
'no-upload'
]
as
bool
;
if
(
noUpload
)
{
return
;
}
final
PointsAndDate
pointsAndDate
=
await
parse
(
args
[
0
]);
// The data will be sent to the Datastore of the GCP project specified through
// environment variable BENCHMARK_GCP_CREDENTIALS, or TOKEN_PATH/GCP_PROJECT.
...
...
testing/benchmark/pubspec.yaml
浏览文件 @
468b4317
...
...
@@ -5,7 +5,7 @@
name
:
flutter_engine_benchmark
publish_to
:
none
environment
:
sdk
:
"
>=2.2.2
<3.0.0"
sdk
:
'
>=2.12.0-0
<3.0.0'
# Do not add any dependencies that require more than what is provided in
# //third_party/pkg, //third_party/dart/pkg, or
...
...
@@ -17,6 +17,7 @@ environment:
# relative to this directory into //third_party/dart
dependencies
:
args
:
any
metrics_center
:
any
path
:
any
...
...
@@ -26,6 +27,8 @@ dev_dependencies:
dependency_overrides
:
_discoveryapis_commons
:
path
:
../../../third_party/pkg/googleapis/discoveryapis_commons
args
:
path
:
../../../third_party/dart/third_party/pkg/args
async_helper
:
path
:
../../../third_party/dart/pkg/async_helper
async
:
...
...
testing/benchmark/upload_metrics.sh
浏览文件 @
468b4317
...
...
@@ -37,10 +37,10 @@ DART="${DART_SDK_DIR}/bin/dart"
cd
"
$SCRIPT_DIR
"
"
$DART
"
--disable-dart-dev
bin/parse_and_send.dart
\
../../../out/host_release/txt_benchmarks.json
--json
../../../out/host_release/txt_benchmarks.json
"
$@
"
"
$DART
"
--disable-dart-dev
bin/parse_and_send.dart
\
../../../out/host_release/fml_benchmarks.json
--json
../../../out/host_release/fml_benchmarks.json
"
$@
"
"
$DART
"
--disable-dart-dev
bin/parse_and_send.dart
\
../../../out/host_release/shell_benchmarks.json
--json
../../../out/host_release/shell_benchmarks.json
"
$@
"
"
$DART
"
--disable-dart-dev
bin/parse_and_send.dart
\
../../../out/host_release/ui_benchmarks.json
--json
../../../out/host_release/ui_benchmarks.json
"
$@
"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录