45 // ysr: (i am not sure i agree with the above note.) i suspect we want to have a |
45 // ysr: (i am not sure i agree with the above note.) i suspect we want to have a |
46 // histogram template that will map an arbitrary type (with a defined order |
46 // histogram template that will map an arbitrary type (with a defined order |
47 // relation) to a count. |
47 // relation) to a count. |
48 |
48 |
49 |
49 |
50 class IntHistogram : public CHeapObj { |
50 class IntHistogram : public CHeapObj<mtInternal> { |
51 protected: |
51 protected: |
52 int _max; |
52 int _max; |
53 int _tot; |
53 int _tot; |
54 GrowableArray<int>* _elements; |
54 GrowableArray<int>* _elements; |
55 |
55 |