gem5
v20.1.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 Stats::Output | |
virtual | ~Output () |
Public Attributes | |
bool | descriptions |
bool | spaces |
Protected Member Functions | |
bool | noOutput (const Info &info) |
Protected Attributes | |
bool | mystream |
std::ostream * | stream |
std::stack< std::string > | path |
Stats::Text::Text | ( | std::ostream & | stream | ) |
Stats::Text::Text | ( | const std::string & | file | ) |
|
overridevirtual |
Implements Stats::Output.
Definition at line 152 of file text.cc.
References ccprintf(), and stream.
|
overridevirtual |
Implements Stats::Output.
Definition at line 174 of file text.cc.
References csprintf(), name(), and path.
|
overridevirtual |
Implements Stats::Output.
Definition at line 158 of file text.cc.
References ccprintf(), and stream.
|
overridevirtual |
|
protected |
Definition at line 191 of file text.cc.
References Stats::display, Stats::Info::flags, Flags< T >::isSet(), Stats::Info::prereq, and Stats::Info::zero().
Referenced by visit().
void Stats::Text::open | ( | const std::string & | file | ) |
void Stats::Text::open | ( | std::ostream & | stream | ) |
std::string Stats::Text::statName | ( | const std::string & | name | ) | const |
Definition at line 165 of file text.cc.
References csprintf(), name(), and path.
Referenced by Stats::DistPrint::DistPrint(), Stats::DistPrint::init(), Stats::SparseHistPrint::init(), and visit().
|
overridevirtual |
Implements Stats::Output.
Definition at line 146 of file text.cc.
References stream.
Referenced by open().
|
overridevirtual |
Implements Stats::Output.
Definition at line 708 of file text.cc.
References noOutput(), and stream.
|
overridevirtual |
|
overridevirtual |
Implements Stats::Output.
Definition at line 582 of file text.cc.
References Stats::ScalarPrint::cdf, Stats::Info::desc, Stats::ScalarPrint::desc, descriptions, Stats::ScalarPrint::descriptions, Stats::Info::flags, Stats::ScalarPrint::flags, Stats::Info::name, Stats::ScalarPrint::name, NAN, noOutput(), Stats::ScalarPrint::pdf, Stats::Info::precision, Stats::ScalarPrint::precision, Stats::ScalarInfo::result(), spaces, statName(), stream, and Stats::ScalarPrint::value.
Referenced by visit().
|
overridevirtual |
Implements Stats::Output.
Definition at line 807 of file text.cc.
References noOutput(), and stream.
|
overridevirtual |
Implements Stats::Output.
Definition at line 641 of file text.cc.
References Stats::Vector2dInfo::cvec, Stats::Info::desc, Stats::VectorPrint::desc, descriptions, Stats::VectorPrint::descriptions, Stats::Info::flags, Stats::VectorPrint::flags, Stats::VectorPrint::forceSubnames, ArmISA::i, Flags< T >::isSet(), ArmISA::j, Stats::Info::name, Stats::VectorPrint::name, noOutput(), Stats::Info::precision, Stats::VectorPrint::precision, Stats::Info::separatorString, Stats::VectorPrint::separatorString, spaces, statName(), stream, Stats::Vector2dInfo::subnames, Stats::VectorPrint::subnames, sc_dt::to_string(), Stats::total, Stats::Vector2dInfo::total(), Stats::VectorPrint::total, Stats::VectorPrint::vec, Stats::Vector2dInfo::x, Stats::Vector2dInfo::y, and Stats::Vector2dInfo::y_subnames.
|
overridevirtual |
Implements Stats::Output.
Definition at line 718 of file text.cc.
References ArmISA::i, noOutput(), Stats::VectorDistInfo::size(), and stream.
|
overridevirtual |
Implements Stats::Output.
Definition at line 601 of file text.cc.
References Stats::Info::desc, Stats::VectorPrint::desc, descriptions, Stats::VectorPrint::descriptions, Stats::Info::flags, Stats::VectorPrint::flags, Stats::VectorPrint::forceSubnames, ArmISA::i, Stats::Info::name, Stats::VectorPrint::name, noOutput(), Stats::Info::precision, Stats::VectorPrint::precision, Stats::VectorInfo::result(), Stats::Info::separatorString, Stats::VectorPrint::separatorString, Stats::VectorInfo::size(), spaces, statName(), stream, Stats::VectorInfo::subdescs, Stats::VectorPrint::subdescs, Stats::VectorInfo::subnames, Stats::VectorPrint::subnames, Stats::VectorInfo::total(), Stats::VectorPrint::total, and Stats::VectorPrint::vec.
bool Stats::Text::descriptions |
Definition at line 67 of file text.hh.
Referenced by Stats::DistPrint::init(), Stats::SparseHistPrint::init(), Stats::initText(), and visit().
|
protected |
|
protected |
Definition at line 61 of file text.hh.
Referenced by beginGroup(), endGroup(), and statName().
bool Stats::Text::spaces |
Definition at line 68 of file text.hh.
Referenced by Stats::DistPrint::init(), Stats::SparseHistPrint::init(), Stats::initText(), and visit().
|
protected |