src/share/vm/utilities/histogram.hpp

changeset 3901
24b9c7f4cae6
parent 3900
d2a62e0f25eb
child 4153
b9a9ed0f8eeb
equal deleted inserted replaced
3898:bcffa4c5eef6 3901:24b9c7f4cae6
75 // 75 //
76 // To print the results, invoke print() on your Histogram*. 76 // To print the results, invoke print() on your Histogram*.
77 77
78 #ifdef ASSERT 78 #ifdef ASSERT
79 79
80 class HistogramElement : public CHeapObj { 80 class HistogramElement : public CHeapObj<mtInternal> {
81 protected: 81 protected:
82 jint _count; 82 jint _count;
83 const char* _name; 83 const char* _name;
84 84
85 public: 85 public:
89 virtual void increment_count(); 89 virtual void increment_count();
90 void print_on(outputStream* st) const; 90 void print_on(outputStream* st) const;
91 virtual int compare(HistogramElement* e1,HistogramElement* e2); 91 virtual int compare(HistogramElement* e1,HistogramElement* e2);
92 }; 92 };
93 93
94 class Histogram : public CHeapObj { 94 class Histogram : public CHeapObj<mtInternal> {
95 protected: 95 protected:
96 GrowableArray<HistogramElement*>* _elements; 96 GrowableArray<HistogramElement*>* _elements;
97 GrowableArray<HistogramElement*>* elements() { return _elements; } 97 GrowableArray<HistogramElement*>* elements() { return _elements; }
98 const char* _title; 98 const char* _title;
99 const char* title() { return _title; } 99 const char* title() { return _title; }

mercurial