equal
deleted
inserted
replaced
279 private: |
279 private: |
280 static const int _histo_initial_size = 1000; |
280 static const int _histo_initial_size = 1000; |
281 KlassInfoTable *_cit; |
281 KlassInfoTable *_cit; |
282 GrowableArray<KlassInfoEntry*>* _elements; |
282 GrowableArray<KlassInfoEntry*>* _elements; |
283 GrowableArray<KlassInfoEntry*>* elements() const { return _elements; } |
283 GrowableArray<KlassInfoEntry*>* elements() const { return _elements; } |
284 const char* _title; |
|
285 const char* title() const { return _title; } |
|
286 static int sort_helper(KlassInfoEntry** e1, KlassInfoEntry** e2); |
284 static int sort_helper(KlassInfoEntry** e1, KlassInfoEntry** e2); |
287 void print_elements(outputStream* st) const; |
285 void print_elements(outputStream* st) const; |
288 void print_class_stats(outputStream* st, bool csv_format, const char *columns); |
286 void print_class_stats(outputStream* st, bool csv_format, const char *columns); |
289 julong annotations_bytes(Array<AnnotationArray*>* p) const; |
287 julong annotations_bytes(Array<AnnotationArray*>* p) const; |
290 const char *_selected_columns; |
288 const char *_selected_columns; |
338 // add a leading space for separation. |
336 // add a leading space for separation. |
339 return w + 1; |
337 return w + 1; |
340 } |
338 } |
341 |
339 |
342 public: |
340 public: |
343 KlassInfoHisto(KlassInfoTable* cit, const char* title); |
341 KlassInfoHisto(KlassInfoTable* cit); |
344 ~KlassInfoHisto(); |
342 ~KlassInfoHisto(); |
345 void add(KlassInfoEntry* cie); |
343 void add(KlassInfoEntry* cie); |
346 void print_histo_on(outputStream* st, bool print_class_stats, bool csv_format, const char *columns); |
344 void print_histo_on(outputStream* st, bool print_class_stats, bool csv_format, const char *columns); |
347 void sort(); |
345 void sort(); |
348 }; |
346 }; |