comparison src/share/vm/utilities/intHisto.hpp @ 6197:d2a62e0f25eb

6995781: Native Memory Tracking (Phase 1) 7151532: DCmd for hotspot native memory tracking Summary: Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd Reviewed-by: acorn, coleenp, fparain
author zgu
date Thu, 28 Jun 2012 17:03:16 -0400
parents f95d63e2154a
children b9a9ed0f8eeb
comparison
equal deleted inserted replaced
6174:74533f63b116 6197:d2a62e0f25eb
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