gem5  v21.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Stats::Text Class Reference

#include <text.hh>

Inheritance diagram for Stats::Text:
Stats::Output

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 units
 
bool descriptions
 
bool spaces
 

Protected Member Functions

bool noOutput (const Info &info)
 

Protected Attributes

bool mystream
 
std::ostream * stream
 
std::stack< std::string > path
 

Detailed Description

Definition at line 54 of file text.hh.

Constructor & Destructor Documentation

◆ Text() [1/3]

Stats::Text::Text ( )

Definition at line 95 of file text.cc.

◆ Text() [2/3]

Stats::Text::Text ( std::ostream &  stream)

Definition at line 100 of file text.cc.

References open(), and stream.

◆ Text() [3/3]

Stats::Text::Text ( const std::string &  file)

Definition at line 105 of file text.cc.

References open().

◆ ~Text()

Stats::Text::~Text ( )

Definition at line 111 of file text.cc.

References mystream, and stream.

Member Function Documentation

◆ begin()

void Stats::Text::begin ( )
overridevirtual

Implements Stats::Output.

Definition at line 150 of file text.cc.

References ccprintf(), and stream.

◆ beginGroup()

void Stats::Text::beginGroup ( const char *  name)
overridevirtual

Implements Stats::Output.

Definition at line 172 of file text.cc.

References csprintf(), name(), and path.

◆ end()

void Stats::Text::end ( )
overridevirtual

Implements Stats::Output.

Definition at line 156 of file text.cc.

References ccprintf(), and stream.

◆ endGroup()

void Stats::Text::endGroup ( )
overridevirtual

Implements Stats::Output.

Definition at line 182 of file text.cc.

References path.

◆ noOutput()

bool Stats::Text::noOutput ( const Info info)
protected

Definition at line 189 of file text.cc.

References Stats::display, Stats::Info::flags, Flags< T >::isSet(), Stats::Info::prereq, and Stats::Info::zero().

Referenced by visit().

◆ open() [1/2]

void Stats::Text::open ( const std::string &  file)

Definition at line 132 of file text.cc.

References fatal, mystream, panic, stream, and valid().

◆ open() [2/2]

void Stats::Text::open ( std::ostream &  stream)

Definition at line 120 of file text.cc.

References fatal, mystream, panic, stream, and valid().

Referenced by Stats::initText(), and Text().

◆ statName()

std::string Stats::Text::statName ( const std::string &  name) const

◆ valid()

bool Stats::Text::valid ( ) const
overridevirtual

Implements Stats::Output.

Definition at line 144 of file text.cc.

References stream.

Referenced by open().

◆ visit() [1/7]

void Stats::Text::visit ( const DistInfo info)
overridevirtual

Implements Stats::Output.

Definition at line 737 of file text.cc.

References noOutput(), and stream.

◆ visit() [2/7]

void Stats::Text::visit ( const FormulaInfo info)
overridevirtual

Implements Stats::Output.

Definition at line 759 of file text.cc.

References visit().

◆ visit() [3/7]

void Stats::Text::visit ( const ScalarInfo info)
overridevirtual

◆ visit() [4/7]

void Stats::Text::visit ( const SparseHistInfo info)
overridevirtual

Implements Stats::Output.

Definition at line 842 of file text.cc.

References noOutput(), and stream.

◆ visit() [5/7]

void Stats::Text::visit ( const Vector2dInfo info)
overridevirtual

◆ visit() [6/7]

void Stats::Text::visit ( const VectorDistInfo info)
overridevirtual

Implements Stats::Output.

Definition at line 747 of file text.cc.

References ArmISA::i, noOutput(), Stats::VectorDistInfo::size(), and stream.

◆ visit() [7/7]

void Stats::Text::visit ( const VectorInfo info)
overridevirtual

Member Data Documentation

◆ descriptions

bool Stats::Text::descriptions

◆ mystream

bool Stats::Text::mystream
protected

Definition at line 57 of file text.hh.

Referenced by open(), and ~Text().

◆ path

std::stack<std::string> Stats::Text::path
protected

Definition at line 61 of file text.hh.

Referenced by beginGroup(), endGroup(), and statName().

◆ spaces

bool Stats::Text::spaces

◆ stream

std::ostream* Stats::Text::stream
protected

Definition at line 58 of file text.hh.

Referenced by begin(), end(), open(), Text(), valid(), visit(), and ~Text().

◆ units

bool Stats::Text::units

The documentation for this class was generated from the following files:

Generated on Tue Mar 23 2021 19:42:06 for gem5 by doxygen 1.8.17