gem5 v24.0.0.0
|
#include <text.hh>
Public Member Functions | |
Text () | |
Text (std::ostream &stream) | |
Text (const std::string &file) | |
~Text () | |
void | open (std::ostream &stream) |
void | open (const std::string &file) |
std::string | statName (const std::string &name) const |
void | visit (const ScalarInfo &info) override |
void | visit (const VectorInfo &info) override |
void | visit (const DistInfo &info) override |
void | visit (const VectorDistInfo &info) override |
void | visit (const Vector2dInfo &info) override |
void | visit (const FormulaInfo &info) override |
void | visit (const SparseHistInfo &info) override |
void | beginGroup (const char *name) override |
void | endGroup () override |
bool | valid () const override |
void | begin () override |
void | end () override |
Public Member Functions inherited from gem5::statistics::Output | |
virtual | ~Output () |
Public Attributes | |
bool | enableUnits |
bool | descriptions |
bool | spaces |
Protected Member Functions | |
bool | noOutput (const Info &info) |
Protected Attributes | |
bool | mystream |
std::ostream * | stream |
std::stack< std::string > | path |
gem5::statistics::Text::Text | ( | std::ostream & | stream | ) |
gem5::statistics::Text::Text | ( | const std::string & | file | ) |
gem5::statistics::Text::~Text | ( | ) |
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 130 of file text.cc.
References gem5::ccprintf(), and stream.
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 152 of file text.cc.
References gem5::csprintf(), name(), and path.
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 136 of file text.cc.
References gem5::ccprintf(), and stream.
|
overridevirtual |
|
protected |
Definition at line 169 of file text.cc.
References gem5::statistics::display, gem5::statistics::Info::flags, gem5::Flags< T >::isSet(), gem5::statistics::Info::prereq, and gem5::statistics::Info::zero().
Referenced by visit(), visit(), visit(), visit(), visit(), and visit().
void gem5::statistics::Text::open | ( | const std::string & | file | ) |
void gem5::statistics::Text::open | ( | std::ostream & | stream | ) |
std::string gem5::statistics::Text::statName | ( | const std::string & | name | ) | const |
Definition at line 143 of file text.cc.
References gem5::csprintf(), name(), and path.
Referenced by gem5::statistics::DistPrint::DistPrint(), gem5::statistics::DistPrint::init(), gem5::statistics::SparseHistPrint::init(), visit(), visit(), and visit().
|
overridevirtual |
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 708 of file text.cc.
References noOutput(), and stream.
|
overridevirtual |
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 587 of file text.cc.
References gem5::statistics::ScalarPrint::cdf, gem5::statistics::Info::desc, descriptions, enableUnits, gem5::statistics::Info::flags, gem5::statistics::units::Base::getUnitString(), gem5::statistics::Info::name, noOutput(), gem5::statistics::ScalarPrint::pdf, gem5::statistics::Info::precision, gem5::statistics::ScalarInfo::result(), gem5::statistics::BasePrint::setup(), spaces, statName(), stream, gem5::statistics::Info::unit, and gem5::statistics::ScalarPrint::value.
Referenced by visit().
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 794 of file text.cc.
References noOutput(), and stream.
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 639 of file text.cc.
References gem5::statistics::Vector2dInfo::cvec, gem5::statistics::BasePrint::desc, gem5::statistics::Info::desc, gem5::statistics::BasePrint::descriptions, descriptions, gem5::statistics::BasePrint::enableUnits, enableUnits, gem5::statistics::BasePrint::flags, gem5::statistics::Info::flags, gem5::statistics::VectorPrint::forceSubnames, gem5::statistics::units::Base::getUnitString(), gem5::ArmISA::i, gem5::Flags< T >::isSet(), gem5::statistics::BasePrint::name, gem5::statistics::Info::name, noOutput(), gem5::statistics::BasePrint::precision, gem5::statistics::Info::precision, gem5::statistics::Info::separatorString, gem5::statistics::VectorPrint::separatorString, spaces, statName(), stream, gem5::statistics::Vector2dInfo::subnames, gem5::statistics::VectorPrint::subnames, gem5::statistics::total, gem5::statistics::Vector2dInfo::total(), gem5::statistics::VectorPrint::total, gem5::statistics::Info::unit, gem5::statistics::BasePrint::unitStr, gem5::statistics::VectorPrint::vec, gem5::statistics::Vector2dInfo::x, gem5::statistics::Vector2dInfo::y, and gem5::statistics::Vector2dInfo::y_subnames.
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 718 of file text.cc.
References gem5::ArmISA::i, noOutput(), gem5::statistics::VectorDistInfo::size(), and stream.
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 603 of file text.cc.
References gem5::statistics::Info::desc, descriptions, enableUnits, gem5::statistics::Info::flags, gem5::statistics::VectorPrint::forceSubnames, gem5::statistics::units::Base::getUnitString(), gem5::ArmISA::i, gem5::statistics::Info::name, noOutput(), gem5::statistics::Info::precision, gem5::statistics::VectorInfo::result(), gem5::statistics::Info::separatorString, gem5::statistics::VectorPrint::separatorString, gem5::statistics::BasePrint::setup(), gem5::statistics::VectorInfo::size(), spaces, statName(), stream, gem5::statistics::VectorInfo::subdescs, gem5::statistics::VectorPrint::subdescs, gem5::statistics::VectorInfo::subnames, gem5::statistics::VectorPrint::subnames, gem5::statistics::VectorInfo::total(), gem5::statistics::VectorPrint::total, gem5::statistics::Info::unit, and gem5::statistics::VectorPrint::vec.
bool gem5::statistics::Text::descriptions |
Definition at line 73 of file text.hh.
Referenced by gem5::statistics::DistPrint::init(), gem5::statistics::SparseHistPrint::init(), gem5::statistics::initText(), visit(), visit(), and visit().
bool gem5::statistics::Text::enableUnits |
Definition at line 72 of file text.hh.
Referenced by gem5::statistics::DistPrint::init(), gem5::statistics::SparseHistPrint::init(), gem5::statistics::initText(), visit(), visit(), and visit().
|
protected |
|
protected |
Definition at line 66 of file text.hh.
Referenced by beginGroup(), endGroup(), and statName().
bool gem5::statistics::Text::spaces |
Definition at line 74 of file text.hh.
Referenced by gem5::statistics::DistPrint::init(), gem5::statistics::SparseHistPrint::init(), gem5::statistics::initText(), visit(), visit(), and visit().
|
protected |