Index: runtime/bin/vmstats/bargraph.dart |
diff --git a/runtime/bin/vmstats/bargraph.dart b/runtime/bin/vmstats/bargraph.dart |
index 3eb4b3d7fae23e45a842405875b21151301fadac..c35325385149e6d8ac3caccb79aeb3c165b8e855 100644 |
--- a/runtime/bin/vmstats/bargraph.dart |
+++ b/runtime/bin/vmstats/bargraph.dart |
@@ -220,6 +220,6 @@ class Sample { |
Iterator<int> get iterator => _segments.iterator; |
int total() { |
- return _segments.reduce(0, (int prev, int element) => prev + element); |
+ return _segments.fold(0, (int prev, int element) => prev + element); |
} |
} |