Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(927)

Unified Diff: runtime/observatory/tests/observatory_ui/mocks/objects/heap_space.dart

Issue 2255613002: Converted Observatory heap-profile element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Avoid to send dateLastServiceGC & dateLastAccumulatorReset if never happened Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/tests/observatory_ui/mocks/objects/heap_space.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/objects/heap_space.dart b/runtime/observatory/tests/observatory_ui/mocks/objects/heap_space.dart
index 022414c92155fd2afcc489aa4035eb797482137a..1f96ad8d972fd47c02228a0747cd44248c0d3eb3 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/objects/heap_space.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/objects/heap_space.dart
@@ -7,5 +7,14 @@ part of mocks;
class HeapSpaceMock implements M.HeapSpace {
final int used;
final int capacity;
- const HeapSpaceMock({this.used: 0, this.capacity: 1});
+ final int collections;
+ final int external;
+ final Duration avgCollectionTime;
+ final Duration totalCollectionTime;
+ final Duration avgCollectionPeriod;
+ const HeapSpaceMock({this.used: 0, this.capacity: 1, this.collections: 0,
+ this.external: 1,
+ this.avgCollectionTime: const Duration(),
+ this.totalCollectionTime: const Duration(),
+ this.avgCollectionPeriod: const Duration()});
}

Powered by Google App Engine
This is Rietveld 408576698