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
2296bb15
Unverified
Commit
2296bb15
authored
Aug 08, 2020
by
Yuqian Li
Committed by
GitHub
Aug 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Measure CPU/GPU with the simple animation test (#63124)
parent
e49a5766
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
18 deletions
+13
-18
complex_layout_scroll_perf_ios__timeline_summary.dart
...sks/complex_layout_scroll_perf_ios__timeline_summary.dart
+1
-1
simple_animation_perf_ios.dart
dev/devicelab/bin/tasks/simple_animation_perf_ios.dart
+0
-0
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+6
-12
manifest.yaml
dev/devicelab/manifest.yaml
+6
-5
No files found.
dev/devicelab/bin/tasks/complex_layout_scroll_perf_ios__timeline_summary.dart
View file @
2296bb15
...
...
@@ -10,5 +10,5 @@ import 'package:flutter_devicelab/framework/framework.dart';
Future
<
void
>
main
()
async
{
deviceOperatingSystem
=
DeviceOperatingSystem
.
ios
;
await
task
(
createComplexLayoutScrollPerfTest
());
await
task
(
createComplexLayoutScrollPerfTest
(
needsMeasureCpuGpu:
true
));
}
dev/devicelab/bin/tasks/simple_animation_perf_i
phonex
s.dart
→
dev/devicelab/bin/tasks/simple_animation_perf_i
o
s.dart
View file @
2296bb15
File moved
dev/devicelab/lib/tasks/perf_tests.dart
View file @
2296bb15
...
...
@@ -12,15 +12,15 @@ 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/ios.dart'
;
import
'package:flutter_devicelab/framework/utils.dart'
;
import
'package:flutter_devicelab/tasks/track_widget_creation_enabled_task.dart'
;
TaskFunction
createComplexLayoutScrollPerfTest
(
)
{
TaskFunction
createComplexLayoutScrollPerfTest
(
{
bool
needsMeasureCpuGpu
=
false
}
)
{
return
PerfTest
(
'
${flutterDirectory.path}
/dev/benchmarks/complex_layout'
,
'test_driver/scroll_perf.dart'
,
'complex_layout_scroll_perf'
,
needsMeasureCpuGpu:
needsMeasureCpuGpu
,
).
run
;
}
...
...
@@ -398,8 +398,8 @@ class PerfTest {
/// 'average_vsync_transitions_missed',
/// '90th_percentile_vsync_transitions_missed',
/// '99th_percentile_vsync_transitions_missed',
/// if (needsMeasureCpuGpu) '
cpu_percent
age',
/// if (needsMeasureCpuGpu) '
gpu_percent
age',
/// if (needsMeasureCpuGpu) '
average_cpu_us
age',
/// if (needsMeasureCpuGpu) '
average_gpu_us
age',
/// ]
/// ```
final
List
<
String
>
benchmarkScoreKeys
;
...
...
@@ -455,12 +455,6 @@ class PerfTest {
);
}
if
(
needsMeasureCpuGpu
)
{
await
inDirectory
<
void
>(
'
$testDirectory
/build'
,
()
async
{
data
.
addAll
(
await
measureIosCpuGpu
(
deviceId:
deviceId
));
});
}
return
TaskResult
.
success
(
data
,
benchmarkScoreKeys:
benchmarkScoreKeys
??
<
String
>[
...
...
@@ -475,8 +469,8 @@ class PerfTest {
'average_vsync_transitions_missed'
,
'90th_percentile_vsync_transitions_missed'
,
'99th_percentile_vsync_transitions_missed'
,
if
(
needsMeasureCpuGpu
)
'
cpu_percent
age'
,
if
(
needsMeasureCpuGpu
)
'
gpu_percent
age'
,
if
(
needsMeasureCpuGpu
)
'
average_cpu_us
age'
,
if
(
needsMeasureCpuGpu
)
'
average_gpu_us
age'
,
],
);
});
...
...
dev/devicelab/manifest.yaml
View file @
2296bb15
...
...
@@ -647,11 +647,12 @@ tasks:
stage
:
devicelab_ios
required_agent_capabilities
:
[
"
mac/ios"
]
# simple_animation_perf_iphonexs:
# description: >
# Measure CPU/GPU usage percentages of a simple animation.
# stage: devicelab_ios
# required_agent_capabilities: ["mac/iphonexs"]
simple_animation_perf_ios
:
description
:
>
Measure CPU/GPU usage percentages of a simple animation.
stage
:
devicelab_ios
required_agent_capabilities
:
[
"
mac/ios"
]
flaky
:
true
smoke_catalina_start_up_ios
:
description
:
>
...
...
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