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
b8a39c15
Unverified
Commit
b8a39c15
authored
Sep 15, 2020
by
Yuqian Li
Committed by
GitHub
Sep 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collect memory metrics (#65798)
parent
04e4b117
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
large_image_changer_perf_ios.dart
dev/devicelab/bin/tasks/large_image_changer_perf_ios.dart
+1
-0
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+5
-0
No files found.
dev/devicelab/bin/tasks/large_image_changer_perf_ios.dart
View file @
b8a39c15
...
...
@@ -16,5 +16,6 @@ Future<void> main() async {
'test_driver/large_image_changer.dart'
,
'large_image_changer'
,
measureCpuGpu:
true
,
measureMemory:
true
,
).
run
);
}
dev/devicelab/lib/tasks/perf_tests.dart
View file @
b8a39c15
...
...
@@ -469,6 +469,7 @@ class PerfTest {
this
.
testTarget
,
this
.
timelineFileName
,
{
this
.
measureCpuGpu
=
false
,
this
.
measureMemory
=
false
,
this
.
saveTraceFile
=
false
,
this
.
testDriver
,
this
.
needsFullTimeline
=
true
,
...
...
@@ -481,6 +482,7 @@ class PerfTest {
this
.
testDirectory
,
this
.
testTarget
,
{
this
.
measureCpuGpu
=
false
,
this
.
measureMemory
=
false
,
this
.
testDriver
=
'test_driver/e2e_test.dart'
,
this
.
needsFullTimeline
=
false
,
this
.
benchmarkScoreKeys
=
_kCommonScoreKeys
,
...
...
@@ -501,6 +503,8 @@ class PerfTest {
final
String
testDriver
;
/// Whether to collect CPU and GPU metrics.
final
bool
measureCpuGpu
;
/// Whether to collect memory metrics.
final
bool
measureMemory
;
/// Whether to collect full timeline, meaning if `--trace-startup` flag is needed.
final
bool
needsFullTimeline
;
/// Whether to save the trace timeline file `*.timeline.json`.
...
...
@@ -593,6 +597,7 @@ class PerfTest {
'99th_percentile_vsync_transitions_missed'
,
if
(
measureCpuGpu
)
'average_cpu_usage'
,
if
(
measureCpuGpu
)
'average_gpu_usage'
,
if
(
measureMemory
)
...<
String
>[
'average_memory_usage'
,
'90th_percentile_memory_usage'
,
'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