gem5
v20.1.0.0
|
#include <Histogram.hh>
Public Member Functions | |
Histogram (int binsize=1, uint32_t bins=50) | |
~Histogram () | |
void | add (int64_t value) |
void | add (Histogram &hist) |
void | doubleBinSize () |
void | clear () |
void | clear (uint32_t bins) |
void | clear (int binsize, uint32_t bins) |
uint64_t | size () const |
uint32_t | getBins () const |
int | getBinSize () const |
int64_t | getTotal () const |
uint64_t | getSquaredTotal () const |
uint64_t | getData (int index) const |
int64_t | getMax () const |
void | printWithMultiplier (std::ostream &out, double multiplier) const |
void | printPercent (std::ostream &out) const |
void | print (std::ostream &out) const |
Private Member Functions | |
double | getStandardDeviation () const |
Private Attributes | |
std::vector< uint64_t > | m_data |
int64_t | m_max |
uint64_t | m_count |
int | m_binsize |
uint32_t | m_largest_bin |
int64_t | m_sumSamples |
uint64_t | m_sumSquaredSamples |
Definition at line 37 of file Histogram.hh.
Histogram::Histogram | ( | int | binsize = 1 , |
uint32_t | bins = 50 |
||
) |
Definition at line 38 of file Histogram.cc.
Histogram::~Histogram | ( | ) |
Definition at line 44 of file Histogram.cc.
void Histogram::add | ( | Histogram & | hist | ) |
Definition at line 123 of file Histogram.cc.
References doubleBinSize(), fatal, getBins(), getBinSize(), getData(), getMax(), getSquaredTotal(), getTotal(), ArmISA::i, ArmISA::j, and size().
void Histogram::add | ( | int64_t | value | ) |
Definition at line 88 of file Histogram.cc.
References floorLog2(), and MipsISA::index.
Referenced by AccessTraceForAddress::addSample(), StoreTrace::downgrade(), printSorted(), AddressProfiler::profileGetS(), AddressProfiler::profileGetX(), and AddressProfiler::profileRetry().
|
inline |
Definition at line 47 of file Histogram.hh.
References clear(), and m_data.
Referenced by clear(), AddressProfiler::clearStats(), and StoreTrace::clearSummary().
void Histogram::clear | ( | int | binsize, |
uint32_t | bins | ||
) |
Definition at line 49 of file Histogram.cc.
void Histogram::clear | ( | uint32_t | bins | ) |
Definition at line 56 of file Histogram.cc.
References ArmISA::i.
void Histogram::doubleBinSize | ( | ) |
|
inline |
|
inline |
|
inline |
Definition at line 56 of file Histogram.hh.
References MipsISA::index, and m_data.
Referenced by add().
|
inline |
|
inline |
|
private |
Definition at line 176 of file Histogram.cc.
|
inline |
Definition at line 54 of file Histogram.hh.
References m_sumSamples.
Referenced by add(), and AccessTraceForAddress::getTotal().
void Histogram::print | ( | std::ostream & | out | ) | const |
Definition at line 188 of file Histogram.cc.
Referenced by operator<<().
void Histogram::printPercent | ( | std::ostream & | out | ) | const |
Definition at line 194 of file Histogram.cc.
Referenced by AddressProfiler::printStats().
void Histogram::printWithMultiplier | ( | std::ostream & | out, |
double | multiplier | ||
) | const |
Definition at line 204 of file Histogram.cc.
References ArmISA::i.
|
inline |
Definition at line 51 of file Histogram.hh.
References m_count.
Referenced by add(), node_less_then_eq(), and AddressProfiler::printStats().
|
private |
Definition at line 67 of file Histogram.hh.
Referenced by getBinSize().
|
private |
Definition at line 66 of file Histogram.hh.
Referenced by size().
|
private |
Definition at line 64 of file Histogram.hh.
|
private |
Definition at line 68 of file Histogram.hh.
|
private |
Definition at line 65 of file Histogram.hh.
Referenced by getMax().
|
private |
Definition at line 70 of file Histogram.hh.
Referenced by getTotal().
|
private |
Definition at line 71 of file Histogram.hh.
Referenced by getSquaredTotal().