Unverified Commit 7f7f487a authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Feature/cpu gpu memory gallery transition tests (#92626)

parent e5bbaf66
......@@ -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',
],
],
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment