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
f7504f03
Unverified
Commit
f7504f03
authored
Jul 21, 2022
by
Kaushik Iska
Committed by
GitHub
Jul 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[openpay] Create an OpenPay benchmark (#107838)
parent
6abd3691
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
0 deletions
+46
-0
.ci.yaml
.ci.yaml
+22
-0
TESTOWNERS
TESTOWNERS
+1
-0
openpay_benchmarks__scroll_perf.dart
dev/devicelab/bin/tasks/openpay_benchmarks__scroll_perf.dart
+10
-0
utils.dart
dev/devicelab/lib/framework/utils.dart
+2
-0
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+11
-0
No files found.
.ci.yaml
View file @
f7504f03
...
@@ -49,6 +49,16 @@ platform_properties:
...
@@ -49,6 +49,16 @@ platform_properties:
]
]
os: Linux
os: Linux
device_type: "SM-G973U1"
device_type: "SM-G973U1"
linux_samsung_a02
:
properties
:
dependencies
:
>-
[
{"dependency": "android_sdk", "version": "version:32v1"},
{"dependency": "open_jdk", "version": "11"},
{"dependency": "curl", "version": "version:7.64.0"}
]
os: Linux
device_type: "SM-A025V"
mac
:
mac
:
properties
:
properties
:
dependencies
:
>-
dependencies
:
>-
...
@@ -2251,6 +2261,18 @@ targets:
...
@@ -2251,6 +2261,18 @@ targets:
["devicelab", "android", "linux"]
["devicelab", "android", "linux"]
task_name
:
android_lifecycles_test
task_name
:
android_lifecycles_test
-
name
:
Linux_samsung_a02 openpay_benchmarks__scroll_perf
bringup
:
true
recipe
:
devicelab/devicelab_drone
presubmit
:
false
timeout
:
60
properties
:
openpay
:
"
true"
tags
:
>
["devicelab", "android", "linux", "openpay", "samsung", "a02"]
task_name
:
openpay_benchmarks__scroll_perf
scheduler
:
luci
-
name
:
Staging_build_linux analyze
-
name
:
Staging_build_linux analyze
presubmit
:
false
presubmit
:
false
bringup
:
true
bringup
:
true
...
...
TESTOWNERS
View file @
f7504f03
...
@@ -85,6 +85,7 @@
...
@@ -85,6 +85,7 @@
/dev/devicelab/bin/tasks/gradient_dynamic_perf__e2e_summary.dart @flar @flutter/engine
/dev/devicelab/bin/tasks/gradient_dynamic_perf__e2e_summary.dart @flar @flutter/engine
/dev/devicelab/bin/tasks/gradient_static_perf__e2e_summary.dart @flar @flutter/engine
/dev/devicelab/bin/tasks/gradient_static_perf__e2e_summary.dart @flar @flutter/engine
/dev/devicelab/bin/tasks/animated_complex_opacity_perf__e2e_summary.dart @jonahwilliams @flutter/engine
/dev/devicelab/bin/tasks/animated_complex_opacity_perf__e2e_summary.dart @jonahwilliams @flutter/engine
/dev/devicelab/bin/tasks/openpay_benchmarks__scroll_perf.dart @iskakaushik @flutter/engine
## Windows Android DeviceLab tests
## Windows Android DeviceLab tests
/dev/devicelab/bin/tasks/basic_material_app_win__compile.dart @zanderso @flutter/tool
/dev/devicelab/bin/tasks/basic_material_app_win__compile.dart @zanderso @flutter/tool
...
...
dev/devicelab/bin/tasks/openpay_benchmarks__scroll_perf.dart
0 → 100644
View file @
f7504f03
// Copyright 2014 The Flutter 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
'package:flutter_devicelab/framework/framework.dart'
;
import
'package:flutter_devicelab/tasks/perf_tests.dart'
;
Future
<
void
>
main
()
async
{
await
task
(
createOpenPayScrollPerfTest
());
}
dev/devicelab/lib/framework/utils.dart
View file @
f7504f03
...
@@ -585,6 +585,8 @@ void cd(dynamic directory) {
...
@@ -585,6 +585,8 @@ void cd(dynamic directory) {
Directory
get
flutterDirectory
=>
Directory
.
current
.
parent
.
parent
;
Directory
get
flutterDirectory
=>
Directory
.
current
.
parent
.
parent
;
Directory
get
openpayDirectory
=>
Directory
(
requireEnvVar
(
'OPENPAY_CHECKOUT_PATH'
));
String
requireEnvVar
(
String
name
)
{
String
requireEnvVar
(
String
name
)
{
final
String
?
value
=
Platform
.
environment
[
name
];
final
String
?
value
=
Platform
.
environment
[
name
];
...
...
dev/devicelab/lib/tasks/perf_tests.dart
View file @
f7504f03
...
@@ -223,6 +223,17 @@ TaskFunction createPictureCacheComplexityScoringPerfTest() {
...
@@ -223,6 +223,17 @@ TaskFunction createPictureCacheComplexityScoringPerfTest() {
).
run
;
).
run
;
}
}
TaskFunction
createOpenPayScrollPerfTest
(
{
bool
measureCpuGpu
=
true
})
{
return
PerfTest
(
openpayDirectory
.
path
,
'test_driver/scroll_perf.dart'
,
'openpay_scroll_perf'
,
measureCpuGpu:
measureCpuGpu
,
testDriver:
'test_driver/scroll_perf_test.dart'
,
saveTraceFile:
true
,
).
run
;
}
TaskFunction
createFlutterGalleryStartupTest
(
{
String
target
=
'lib/main.dart'
})
{
TaskFunction
createFlutterGalleryStartupTest
(
{
String
target
=
'lib/main.dart'
})
{
return
StartupTest
(
return
StartupTest
(
'
${flutterDirectory.path}
/dev/integration_tests/flutter_gallery'
,
'
${flutterDirectory.path}
/dev/integration_tests/flutter_gallery'
,
...
...
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