29 #ifndef __MEM_RUBY_COMMON_HISTOGRAM_HH__
30 #define __MEM_RUBY_COMMON_HISTOGRAM_HH__
40 Histogram(
int binsize = 1, uint32_t bins = 50);
43 void add(int64_t value);
48 void clear(uint32_t bins);
49 void clear(
int binsize, uint32_t bins);
61 void print(std::ostream& out)
const;
86 #endif // __MEM_RUBY_COMMON_HISTOGRAM_HH__
uint64_t getSquaredTotal() const
uint64_t m_sumSquaredSamples
std::ostream & operator<<(std::ostream &out, const Histogram &obj)
std::vector< uint64_t > m_data
uint64_t getData(int index) const
double getStandardDeviation() const
Histogram(int binsize=1, uint32_t bins=50)
void printWithMultiplier(std::ostream &out, double multiplier) const
void printPercent(std::ostream &out) const
bool node_less_then_eq(const Histogram *n1, const Histogram *n2)
void print(std::ostream &out) const