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
adf998cb
Commit
adf998cb
authored
Dec 06, 2016
by
Yegor
Committed by
GitHub
Dec 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove mega_gallery__refresh_time superseded by hot_mode_dev_cycle__benchmark (#7171)
parent
cb6bfe39
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
99 deletions
+0
-99
mega_gallery__refresh_time.dart
dev/devicelab/bin/tasks/mega_gallery__refresh_time.dart
+0
-18
refresh.dart
dev/devicelab/lib/tasks/refresh.dart
+0
-75
manifest.yaml
dev/devicelab/manifest.yaml
+0
-6
No files found.
dev/devicelab/bin/tasks/mega_gallery__refresh_time.dart
deleted
100644 → 0
View file @
cb6bfe39
// Copyright 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:async'
;
import
'package:flutter_devicelab/tasks/refresh.dart'
;
import
'package:flutter_devicelab/framework/framework.dart'
;
import
'package:flutter_devicelab/framework/utils.dart'
;
Future
<
Null
>
main
()
async
{
String
revision
=
await
getCurrentFlutterRepoCommit
();
DateTime
revisionTimestamp
=
await
getFlutterRepoCommitTimestamp
(
revision
);
await
task
(
createRefreshTest
(
commit:
revision
,
timestamp:
revisionTimestamp
,
));
}
dev/devicelab/lib/tasks/refresh.dart
deleted
100644 → 0
View file @
cb6bfe39
// 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:async'
;
import
'dart:io'
;
import
'package:path/path.dart'
as
path
;
import
'../framework/adb.dart'
;
import
'../framework/benchmarks.dart'
;
import
'../framework/framework.dart'
;
import
'../framework/utils.dart'
;
TaskFunction
createRefreshTest
(
{
String
commit
,
DateTime
timestamp
})
=>
new
EditRefreshTask
(
commit
,
timestamp
);
class
EditRefreshTask
{
EditRefreshTask
(
this
.
commit
,
this
.
timestamp
)
{
assert
(
commit
!=
null
);
assert
(
timestamp
!=
null
);
}
final
String
commit
;
final
DateTime
timestamp
;
Future
<
TaskResult
>
call
()
async
{
Device
device
=
await
devices
.
workingDevice
;
await
device
.
unlock
();
Benchmark
benchmark
=
new
EditRefreshBenchmark
(
commit
,
timestamp
);
section
(
benchmark
.
name
);
await
runBenchmark
(
benchmark
,
iterations:
3
,
warmUpBenchmark:
true
);
return
benchmark
.
bestResult
;
}
}
class
EditRefreshBenchmark
extends
Benchmark
{
EditRefreshBenchmark
(
this
.
commit
,
this
.
timestamp
)
:
super
(
'edit refresh'
);
final
String
commit
;
final
DateTime
timestamp
;
Directory
get
megaDir
=>
dir
(
path
.
join
(
flutterDirectory
.
path
,
'dev/benchmarks/mega_gallery'
));
File
get
benchmarkFile
=>
file
(
path
.
join
(
megaDir
.
path
,
'refresh_benchmark.json'
));
@override
TaskResult
get
lastResult
=>
new
TaskResult
.
successFromFile
(
benchmarkFile
);
@override
Future
<
Null
>
init
()
{
return
inDirectory
(
flutterDirectory
,
()
async
{
await
dart
(<
String
>[
'dev/tools/mega_gallery.dart'
]);
});
}
@override
Future
<
num
>
run
()
async
{
Device
device
=
await
devices
.
workingDevice
;
rm
(
benchmarkFile
);
int
exitCode
=
await
inDirectory
(
megaDir
,
()
async
{
return
await
flutter
(
'run'
,
options:
<
String
>[
'-d'
,
device
.
deviceId
,
'--benchmark'
],
canFail:
true
);
});
if
(
exitCode
!=
0
)
return
new
Future
<
num
>.
error
(
exitCode
);
return
addBuildInfo
(
benchmarkFile
,
timestamp:
timestamp
,
expected:
200
,
commit:
commit
,
);
}
}
dev/devicelab/manifest.yaml
View file @
adf998cb
...
@@ -97,12 +97,6 @@ tasks:
...
@@ -97,12 +97,6 @@ tasks:
stage
:
devicelab
stage
:
devicelab
required_agent_capabilities
:
[
"
has-android-device"
]
required_agent_capabilities
:
[
"
has-android-device"
]
mega_gallery__refresh_time
:
description
:
>
Measures AOT snapshot rebuild performance on a generated large app.
stage
:
devicelab
required_agent_capabilities
:
[
"
has-android-device"
]
hot_mode_dev_cycle__benchmark
:
hot_mode_dev_cycle__benchmark
:
description
:
>
description
:
>
Measures the performance of Dart VM hot patching feature.
Measures the performance of Dart VM hot patching feature.
...
...
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