Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
921287b4
Commit
921287b4
authored
Sep 19, 2016
by
Yegor
Committed by
GitHub
Sep 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrate hot reload benchmark to the new devicelab framework (#5878)
parent
2a813919
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
hot_mode_dev_cycle__benchmark.dart
dev/devicelab/bin/tasks/hot_mode_dev_cycle__benchmark.dart
+32
-0
manifest.yaml
dev/devicelab/manifest.yaml
+6
-0
No files found.
dev/devicelab/bin/tasks/hot_mode_dev_cycle__benchmark.dart
0 → 100644
View file @
921287b4
// Copyright (c) 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:io'
;
import
'package:path/path.dart'
as
path
;
import
'package:flutter_devicelab/framework/adb.dart'
;
import
'package:flutter_devicelab/framework/framework.dart'
;
import
'package:flutter_devicelab/framework/utils.dart'
;
void
main
(
)
{
task
(()
async
{
Adb
device
=
await
adb
();
await
device
.
unlock
();
Directory
appDir
=
dir
(
path
.
join
(
flutterDirectory
.
path
,
'examples/flutter_gallery'
));
File
benchmarkFile
=
file
(
path
.
join
(
appDir
.
path
,
'hot_benchmark.json'
));
rm
(
benchmarkFile
);
await
inDirectory
(
appDir
,
()
async
{
return
await
flutter
(
'run'
,
options:
<
String
>[
'--hot'
,
'-d'
,
device
.
deviceId
,
'--benchmark'
],
canFail:
false
);
});
return
new
TaskResult
.
successFromFile
(
benchmarkFile
,
benchmarkScoreKeys:
<
String
>[
'hotReloadMillisecondsToFrame'
,
'hotRestartMillisecondsToFrame'
]);
});
}
dev/devicelab/manifest.yaml
View file @
921287b4
...
@@ -103,6 +103,12 @@ tasks:
...
@@ -103,6 +103,12 @@ tasks:
stage
:
devicelab
stage
:
devicelab
required_agent_capabilities
:
[
"
has-android-device"
]
required_agent_capabilities
:
[
"
has-android-device"
]
hot_mode_dev_cycle__benchmark
:
description
:
>
Measures the performance of Dart VM hot patching feature.
stage
:
devicelab
required_agent_capabilities
:
[
"
has-android-device"
]
# iOS on-device tests
# iOS on-device tests
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment