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
7f7f487a
Unverified
Commit
7f7f487a
authored
Oct 28, 2021
by
Ian Hickson
Committed by
GitHub
Oct 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feature/cpu gpu memory gallery transition tests (#92626)
parent
e5bbaf66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
gallery.dart
dev/devicelab/lib/tasks/gallery.dart
+16
-0
No files found.
dev/devicelab/lib/tasks/gallery.dart
View file @
7f7f487a
...
...
@@ -47,10 +47,14 @@ class GalleryTransitionTest {
this
.
timelineTraceFile
=
'transitions.timeline'
,
this
.
transitionDurationFile
=
'transition_durations.timeline'
,
this
.
driverFile
,
this
.
measureCpuGpu
=
true
,
this
.
measureMemory
=
true
,
});
final
bool
semanticsEnabled
;
final
bool
needFullTimeline
;
final
bool
measureCpuGpu
;
final
bool
measureMemory
;
final
String
testFile
;
final
String
timelineSummaryFile
;
final
String
?
timelineTraceFile
;
...
...
@@ -121,6 +125,7 @@ class GalleryTransitionTest {
summary
[
'missed_transition_count'
]
=
_countMissedTransitions
(
transitions
);
}
final
bool
isAndroid
=
deviceOperatingSystem
==
DeviceOperatingSystem
.
android
;
return
TaskResult
.
success
(
summary
,
detailFiles:
<
String
>[
if
(
transitionDurationFile
!=
null
)
...
...
@@ -155,6 +160,17 @@ class GalleryTransitionTest {
'90th_percentile_picture_cache_memory'
,
'99th_percentile_picture_cache_memory'
,
'worst_picture_cache_memory'
,
if
(
measureCpuGpu
&&
!
isAndroid
)
...<
String
>[
// See https://github.com/flutter/flutter/issues/68888
if
(
summary
[
'average_cpu_usage'
]
!=
null
)
'average_cpu_usage'
,
if
(
summary
[
'average_gpu_usage'
]
!=
null
)
'average_gpu_usage'
,
],
if
(
measureMemory
&&
!
isAndroid
)
...<
String
>[
// See https://github.com/flutter/flutter/issues/68888
if
(
summary
[
'average_memory_usage'
]
!=
null
)
'average_memory_usage'
,
if
(
summary
[
'90th_percentile_memory_usage'
]
!=
null
)
'90th_percentile_memory_usage'
,
if
(
summary
[
'99th_percentile_memory_usage'
]
!=
null
)
'99th_percentile_memory_usage'
,
],
],
);
}
...
...
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