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

Unified Diff: runtime/vm/class_table.h

Issue 345543003: Send allocation stats with each class and show in class view. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/service/object.dart ('k') | runtime/vm/class_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_table.h
===================================================================
--- runtime/vm/class_table.h (revision 37499)
+++ runtime/vm/class_table.h (working copy)
@@ -97,7 +97,7 @@
void ResetAtOldGC();
void ResetAccumulator();
void UpdateSize(intptr_t instance_size);
- void PrintTOJSONArray(const Class& cls, JSONArray* array);
+ void PrintToJSONObject(const Class& cls, JSONObject* obj) const;
};
@@ -157,6 +157,7 @@
return reinterpret_cast<uword>(&class_heap_stats_table_);
}
+ ClassHeapStats* StatsWithUpdatedSize(intptr_t cid);
void AllocationProfilePrintJSON(JSONStream* stream);
void ResetAllocationAccumulators();
@@ -178,7 +179,8 @@
ClassHeapStats* predefined_class_heap_stats_table_;
- ClassHeapStats* StatsAt(intptr_t cid);
+ // May not have updated size for variable size classes.
+ ClassHeapStats* PreliminaryStatsAt(intptr_t cid);
void UpdateLiveOld(intptr_t cid, intptr_t size);
void UpdateLiveNew(intptr_t cid, intptr_t size);
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/service/object.dart ('k') | runtime/vm/class_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698