< prev index next >
src/share/vm/utilities/numberSeq.hpp
Print this page
rev 10576 : [backport] Trace and report total allocation latency and sizes
*** 132,150 ****
--- 132,152 ----
// Binary magnitude sequence stores the power-of-two histogram.
// It has very low memory requirements, and is thread-safe. When accuracy
// is not needed, it is preferred over HdrSeq.
class BinaryMagnitudeSeq {
private:
+ jlong _sum;
jlong* _mags;
public:
BinaryMagnitudeSeq();
~BinaryMagnitudeSeq();
void add(size_t val);
size_t num() const;
size_t level(int level) const;
+ size_t sum() const;
int min_level() const;
int max_level() const;
};
class TruncatedSeq: public AbsSeq {
< prev index next >