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

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

Issue 3009743003: [observatory] Add an "ownership" analysis for the heap snapshot. (Closed)
Patch Set: . Created 3 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
« no previous file with comments | « runtime/observatory/lib/src/models/objects/heap_snapshot.dart ('k') | runtime/vm/object_graph.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/observatory_ui/mocks/objects/heap_snapshot.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/objects/heap_snapshot.dart b/runtime/observatory/tests/observatory_ui/mocks/objects/heap_snapshot.dart
index 38cde90adebdcb408c53da59eb6bb85554927382..0b32af1d33f4dd31f3acefe33a867f4efb16228d 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/objects/heap_snapshot.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/objects/heap_snapshot.dart
@@ -12,6 +12,7 @@ class HeapSnapshotMock implements M.HeapSnapshot {
final M.HeapSnapshotDominatorNode dominatorTree;
final M.HeapSnapshotMergedDominatorNode mergedDominatorTree = null;
final Iterable<M.HeapSnapshotClassReferences> classReferences;
+ final Iterable<M.HeapSnapshotOwnershipClass> ownershipClasses;
const HeapSnapshotMock(
{this.timestamp,
@@ -19,7 +20,8 @@ class HeapSnapshotMock implements M.HeapSnapshot {
this.references: 0,
this.size: 0,
this.dominatorTree: const HeapSnapshotDominatorNodeMock(),
- this.classReferences: const []});
+ this.classReferences: const [],
+ this.ownershipClasses: const []});
}
class HeapSnapshotDominatorNodeMock implements M.HeapSnapshotDominatorNode {
« no previous file with comments | « runtime/observatory/lib/src/models/objects/heap_snapshot.dart ('k') | runtime/vm/object_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698