67 return (*e1)->compare(*e1,*e2); |
67 return (*e1)->compare(*e1,*e2); |
68 } |
68 } |
69 |
69 |
70 Histogram::Histogram(const char* title,int estimatedCount) { |
70 Histogram::Histogram(const char* title,int estimatedCount) { |
71 _title = title; |
71 _title = title; |
72 _elements = new (ResourceObj::C_HEAP) GrowableArray<HistogramElement*>(estimatedCount,true); |
72 _elements = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<HistogramElement*>(estimatedCount,true); |
73 } |
73 } |
74 |
74 |
75 void Histogram::add_element(HistogramElement* element) { |
75 void Histogram::add_element(HistogramElement* element) { |
76 // Note, we need to add locking ! |
76 // Note, we need to add locking ! |
77 elements()->append(element); |
77 elements()->append(element); |