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

Unified Diff: runtime/vm/object_graph.h

Issue 263803009: Retained size for instance in Observatory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/bin/vmservice/client/lib/src/elements/instance_view.html ('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/vm/object_graph.h
===================================================================
--- runtime/vm/object_graph.h (revision 35753)
+++ runtime/vm/object_graph.h (working copy)
@@ -61,6 +61,12 @@
// (including 'root' itself).
void IterateObjectsFrom(const Object& root, Visitor* visitor);
+ // The number of bytes retained by 'obj'.
+ intptr_t SizeRetainedByInstance(const Object& obj);
+
+ // The number of bytes retained by the set of all objects of the given class.
+ intptr_t SizeRetainedByClass(intptr_t class_id);
+
private:
Isolate* isolate_;
DISALLOW_IMPLICIT_CONSTRUCTORS(ObjectGraph);
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/instance_view.html ('k') | runtime/vm/object_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698