29#ifndef __MEM_RUBY_COMMON_HISTOGRAM_HH__
30#define __MEM_RUBY_COMMON_HISTOGRAM_HH__
47 Histogram(
int binsize = 1, uint32_t bins = 50);
50 void add(int64_t value);
55 void clear(uint32_t bins);
56 void clear(
int binsize, uint32_t bins);
68 void print(std::ostream& out)
const;
double getStandardDeviation() const
void print(std::ostream &out) const
uint64_t getSquaredTotal() const
uint64_t getData(int index) const
void printWithMultiplier(std::ostream &out, double multiplier) const
uint64_t m_sumSquaredSamples
std::vector< uint64_t > m_data
void printPercent(std::ostream &out) const
Histogram(int binsize=1, uint32_t bins=50)
bool node_less_then_eq(const Histogram *n1, const Histogram *n2)
std::ostream & operator<<(std::ostream &os, const BoolVec &myvector)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.