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

Side by Side Diff: runtime/vm/object_graph.h

Issue 1124153006: Heap snapshot visualizations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync Created 5 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/observatory/tests/service/graph_test.dart ('k') | runtime/vm/object_graph.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_OBJECT_GRAPH_H_ 5 #ifndef VM_OBJECT_GRAPH_H_
6 #define VM_OBJECT_GRAPH_H_ 6 #define VM_OBJECT_GRAPH_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Find the objects that reference 'obj'. Populates the provided array with 84 // Find the objects that reference 'obj'. Populates the provided array with
85 // pairs of (object pointing to 'obj', offset of pointer in words), as far as 85 // pairs of (object pointing to 'obj', offset of pointer in words), as far as
86 // there is room. Returns the number of objects found. 86 // there is room. Returns the number of objects found.
87 // 87 //
88 // An object for which this function answers no inbound references might still 88 // An object for which this function answers no inbound references might still
89 // be live due to references from the stack or embedder handles. 89 // be live due to references from the stack or embedder handles.
90 intptr_t InboundReferences(Object* obj, const Array& references); 90 intptr_t InboundReferences(Object* obj, const Array& references);
91 91
92 // Write the isolate's object graph to 'stream'. Smis and nulls are omitted. 92 // Write the isolate's object graph to 'stream'. Smis and nulls are omitted.
93 // Returns the number of nodes in the stream, including the root.
93 // TODO(koda): Document format; support streaming/chunking. 94 // TODO(koda): Document format; support streaming/chunking.
94 void Serialize(WriteStream* stream); 95 intptr_t Serialize(WriteStream* stream);
95 96
96 private: 97 private:
97 DISALLOW_IMPLICIT_CONSTRUCTORS(ObjectGraph); 98 DISALLOW_IMPLICIT_CONSTRUCTORS(ObjectGraph);
98 }; 99 };
99 100
100 } // namespace dart 101 } // namespace dart
101 102
102 #endif // VM_OBJECT_GRAPH_H_ 103 #endif // VM_OBJECT_GRAPH_H_
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/graph_test.dart ('k') | runtime/vm/object_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698