Unverified Commit ec5cfc00 authored by Greg Spencer's avatar Greg Spencer Committed by GitHub

Fix build failure (#84597)

Fixes an incorrect cast that caused a build failure.

Landing on red to fix the build.
parent 3794884f
...@@ -1474,10 +1474,10 @@ class DevToolsMemoryTest { ...@@ -1474,10 +1474,10 @@ class DevToolsMemoryTest {
final Map<String, dynamic> data = json.decode( final Map<String, dynamic> data = json.decode(
file('$project/$_kJsonFileName').readAsStringSync(), file('$project/$_kJsonFileName').readAsStringSync(),
) as Map<String, dynamic>; ) as Map<String, dynamic>;
final List<Map<String, dynamic>> samples = (data['samples'] as Map<String, dynamic>)['data'] as List<Map<String, dynamic>>; final List<dynamic> samples = (data['samples'] as Map<String, dynamic>)['data'] as List<dynamic>;
int maxRss = 0; int maxRss = 0;
int maxAdbTotal = 0; int maxAdbTotal = 0;
for (final Map<String, dynamic> sample in samples) { for (final Map<String, dynamic> sample in samples.cast<Map<String, dynamic>>()) {
if (sample['rss'] != null) { if (sample['rss'] != null) {
maxRss = math.max(maxRss, sample['rss'] as int); maxRss = math.max(maxRss, sample['rss'] as int);
} }
......
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