comparison src/share/vm/utilities/numberSeq.hpp @ 1086:89f1b9ae8991

6898948: G1: forensic instrumentation for out-of-bounds recent_avg_pause_time_ratio() Summary: Added instrumentation and (temporary) assert in non-product mode; clipped the value when found out-of-bounds in product mode. Fix of original issue will follow collection of data from this instrumentation. Reviewed-by: jcoomes, tonyp
author ysr
date Fri, 13 Nov 2009 11:55:26 -0800
parents 37f87013dfd8
children c18cbe5936b8
comparison
equal deleted inserted replaced
1085:0e2d7ae2bc67 1086:89f1b9ae8991
72 double sd() const; // the standard deviation of the sequence 72 double sd() const; // the standard deviation of the sequence
73 73
74 double davg() const; // decaying average 74 double davg() const; // decaying average
75 double dvariance() const; // decaying variance 75 double dvariance() const; // decaying variance
76 double dsd() const; // decaying "standard deviation" 76 double dsd() const; // decaying "standard deviation"
77
78 // Debugging/Printing
79 virtual void dump();
80 virtual void dump_on(outputStream* s);
77 }; 81 };
78 82
79 class NumberSeq: public AbsSeq { 83 class NumberSeq: public AbsSeq {
80 private: 84 private:
81 bool check_nums(NumberSeq* total, int n, NumberSeq** parts); 85 bool check_nums(NumberSeq* total, int n, NumberSeq** parts);
89 NumberSeq(NumberSeq* total, int n_parts, NumberSeq** parts); 93 NumberSeq(NumberSeq* total, int n_parts, NumberSeq** parts);
90 94
91 virtual void add(double val); 95 virtual void add(double val);
92 virtual double maximum() const { return _maximum; } 96 virtual double maximum() const { return _maximum; }
93 virtual double last() const { return _last; } 97 virtual double last() const { return _last; }
98
99 // Debugging/Printing
100 virtual void dump_on(outputStream* s);
94 }; 101 };
95 102
96 class TruncatedSeq: public AbsSeq { 103 class TruncatedSeq: public AbsSeq {
97 private: 104 private:
98 enum PrivateConstants { 105 enum PrivateConstants {
112 virtual double maximum() const; 119 virtual double maximum() const;
113 virtual double last() const; // the last value added to the sequence 120 virtual double last() const; // the last value added to the sequence
114 121
115 double oldest() const; // the oldest valid value in the sequence 122 double oldest() const; // the oldest valid value in the sequence
116 double predict_next() const; // prediction based on linear regression 123 double predict_next() const; // prediction based on linear regression
124
125 // Debugging/Printing
126 virtual void dump_on(outputStream* s);
117 }; 127 };