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

Unified Diff: runtime/observatory/lib/src/heap_snapshot/heap_snapshot.dart

Issue 2502283003: Add a version of heap snapshots that use only fields and stack frames as roots and only include ins… (Closed)
Patch Set: . Created 4 years, 1 month 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/lib/src/heap_snapshot/heap_snapshot.dart
diff --git a/runtime/observatory/lib/src/heap_snapshot/heap_snapshot.dart b/runtime/observatory/lib/src/heap_snapshot/heap_snapshot.dart
index 2d7abcd313aa5b095ab199b480d75026c3f93486..5f0bd3eb4d86e8b1585510839ce859a2b909b9f6 100644
--- a/runtime/observatory/lib/src/heap_snapshot/heap_snapshot.dart
+++ b/runtime/observatory/lib/src/heap_snapshot/heap_snapshot.dart
@@ -124,6 +124,8 @@ class HeapSnapshotDominatorNode implements M.HeapSnapshotDominatorNode {
final S.Isolate isolate;
S.HeapObject _preloaded;
+ bool get isStack => v.isStack;
+
Future<S.HeapObject> get object {
if (_preloaded != null) {
return new Future.value(_preloaded);
@@ -159,6 +161,8 @@ class HeapSnapshotMergedDominatorNode
final MergedObjectVertex v;
final S.Isolate isolate;
+ bool get isStack => v.isStack;
+
Future<S.HeapObject> get klass {
return new Future.value(isolate.getClassByCid(v.vmCid));
}
« no previous file with comments | « runtime/observatory/lib/src/elements/heap_snapshot.dart ('k') | runtime/observatory/lib/src/models/objects/heap_snapshot.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698