gem5 v24.0.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 44 of file Histogram.hh.
gem5::ruby::Histogram::Histogram | ( | int | binsize = 1, |
uint32_t | bins = 50 ) |
Definition at line 43 of file Histogram.cc.
gem5::ruby::Histogram::~Histogram | ( | ) |
Definition at line 49 of file Histogram.cc.
void gem5::ruby::Histogram::add | ( | Histogram & | hist | ) |
Definition at line 128 of file Histogram.cc.
References add(), doubleBinSize(), fatal, getBins(), getBinSize(), getData(), getMax(), getSquaredTotal(), getTotal(), gem5::ArmISA::i, m_binsize, m_count, m_data, m_largest_bin, m_max, m_sumSamples, m_sumSquaredSamples, and size().
void gem5::ruby::Histogram::add | ( | int64_t | value | ) |
Definition at line 93 of file Histogram.cc.
References doubleBinSize(), gem5::floorLog2(), gem5::MipsISA::index, m_binsize, m_count, m_data, m_largest_bin, m_max, m_sumSamples, and m_sumSquaredSamples.
Referenced by add(), gem5::ruby::AccessTraceForAddress::addSample(), gem5::ruby::StoreTrace::downgrade(), gem5::ruby::printSorted(), gem5::ruby::AddressProfiler::profileGetS(), gem5::ruby::AddressProfiler::profileGetX(), and gem5::ruby::AddressProfiler::profileRetry().
|
inline |
Definition at line 54 of file Histogram.hh.
References clear(), and m_data.
Referenced by clear(), clear(), gem5::ruby::AddressProfiler::clearStats(), gem5::ruby::StoreTrace::clearSummary(), and Histogram().
void gem5::ruby::Histogram::clear | ( | int | binsize, |
uint32_t | bins ) |
Definition at line 54 of file Histogram.cc.
void gem5::ruby::Histogram::clear | ( | uint32_t | bins | ) |
Definition at line 61 of file Histogram.cc.
References gem5::ArmISA::i, m_count, m_data, m_largest_bin, m_max, m_sumSamples, and m_sumSquaredSamples.
void gem5::ruby::Histogram::doubleBinSize | ( | ) |
Definition at line 77 of file Histogram.cc.
References gem5::ArmISA::i, m_binsize, and m_data.
|
inline |
|
inline |
|
inline |
Definition at line 63 of file Histogram.hh.
References gem5::MipsISA::index, and m_data.
Referenced by add().
|
inline |
|
inline |
|
private |
Definition at line 181 of file Histogram.cc.
References m_count, m_sumSamples, and m_sumSquaredSamples.
Referenced by printWithMultiplier().
|
inline |
Definition at line 61 of file Histogram.hh.
References m_sumSamples.
Referenced by add(), and gem5::ruby::AccessTraceForAddress::getTotal().
void gem5::ruby::Histogram::print | ( | std::ostream & | out | ) | const |
Definition at line 193 of file Histogram.cc.
References printWithMultiplier().
Referenced by gem5::ruby::operator<<().
void gem5::ruby::Histogram::printPercent | ( | std::ostream & | out | ) | const |
Definition at line 199 of file Histogram.cc.
References m_count, and printWithMultiplier().
Referenced by gem5::ruby::AddressProfiler::printStats().
void gem5::ruby::Histogram::printWithMultiplier | ( | std::ostream & | out, |
double | multiplier ) const |
Definition at line 209 of file Histogram.cc.
References getStandardDeviation(), gem5::ArmISA::i, m_binsize, m_count, m_data, m_largest_bin, m_max, and m_sumSamples.
Referenced by print(), and printPercent().
|
inline |
Definition at line 58 of file Histogram.hh.
References m_count.
Referenced by add(), gem5::ruby::node_less_then_eq(), and gem5::ruby::AddressProfiler::printStats().
|
private |
Definition at line 74 of file Histogram.hh.
Referenced by add(), add(), clear(), doubleBinSize(), getBinSize(), Histogram(), and printWithMultiplier().
|
private |
Definition at line 73 of file Histogram.hh.
Referenced by add(), add(), clear(), getStandardDeviation(), printPercent(), printWithMultiplier(), and size().
|
private |
Definition at line 71 of file Histogram.hh.
Referenced by add(), add(), clear(), clear(), doubleBinSize(), getBins(), getData(), and printWithMultiplier().
|
private |
Definition at line 75 of file Histogram.hh.
Referenced by add(), add(), clear(), and printWithMultiplier().
|
private |
Definition at line 72 of file Histogram.hh.
Referenced by add(), add(), clear(), getMax(), and printWithMultiplier().
|
private |
Definition at line 77 of file Histogram.hh.
Referenced by add(), add(), clear(), getStandardDeviation(), getTotal(), and printWithMultiplier().
|
private |
Definition at line 78 of file Histogram.hh.
Referenced by add(), add(), clear(), getSquaredTotal(), and getStandardDeviation().