Chromium Code Reviews| Index: runtime/vm/heap_histogram.h |
| diff --git a/runtime/vm/heap_histogram.h b/runtime/vm/heap_histogram.h |
| index 13e0a38a428eae9057435da0dedd8d350256bbee..70f1d43fe1da2a4d4b0deb8c3e0d3c8873155cfd 100644 |
| --- a/runtime/vm/heap_histogram.h |
| +++ b/runtime/vm/heap_histogram.h |
| @@ -12,6 +12,8 @@ |
| namespace dart { |
| +class JSONStream; |
| + |
| DECLARE_FLAG(bool, print_object_histogram); |
| // ObjectHistogram is used to compute an average object histogram over |
| @@ -33,6 +35,8 @@ class ObjectHistogram { |
| // Print the histogram on stdout. |
| void Print(); |
| + void PrintToJSONStream(JSONStream* stream); |
| + |
| private: |
| // Add obj to histogram |
| void Add(RawObject* obj); |
| @@ -52,6 +56,8 @@ class ObjectHistogram { |
| // Compare function for sorting result. |
| static int compare(const Element** a, const Element** b); |
| + Element** GetSortedArray(int* array_length); |
|
siva
2013/08/01 18:16:18
why 'int' and not 'intptr_t'?
We should also docu
Cutch
2013/08/01 22:22:04
Done.
|
| + |
| intptr_t major_gc_count_; |
| intptr_t table_length_; |
| Element* table_; |