gem5  v20.0.0.3
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 descriptions
 

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 97 of file text.cc.

◆ Text() [2/3]

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

Definition at line 102 of file text.cc.

References open().

◆ Text() [3/3]

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

Definition at line 108 of file text.cc.

References open().

◆ ~Text()

Stats::Text::~Text ( )

Definition at line 115 of file text.cc.

References mystream, and stream.

Member Function Documentation

◆ begin()

void Stats::Text::begin ( )
overridevirtual

Implements Stats::Output.

Definition at line 154 of file text.cc.

References ccprintf(), and stream.

◆ beginGroup()

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

Implements Stats::Output.

Definition at line 176 of file text.cc.

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

◆ end()

void Stats::Text::end ( )
overridevirtual

Implements Stats::Output.

Definition at line 160 of file text.cc.

References ccprintf(), and stream.

◆ endGroup()

void Stats::Text::endGroup ( )
overridevirtual

Implements Stats::Output.

Definition at line 186 of file text.cc.

References path.

◆ noOutput()

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

◆ open() [1/2]

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

Definition at line 124 of file text.cc.

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

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

◆ open() [2/2]

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

Definition at line 136 of file text.cc.

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

◆ statName()

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

Definition at line 167 of file text.cc.

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

Referenced by Stats::DistPrint::DistPrint(), Stats::DistPrint::init(), and Stats::SparseHistPrint::init().

◆ valid()

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

Implements Stats::Output.

Definition at line 148 of file text.cc.

References stream.

Referenced by open().

◆ visit() [1/7]

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

◆ visit() [2/7]

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

◆ visit() [3/7]

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

Implements Stats::Output.

Definition at line 670 of file text.cc.

◆ visit() [4/7]

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

Implements Stats::Output.

Definition at line 680 of file text.cc.

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

◆ visit() [5/7]

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

◆ visit() [6/7]

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

Implements Stats::Output.

Definition at line 692 of file text.cc.

◆ visit() [7/7]

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

Implements Stats::Output.

Definition at line 767 of file text.cc.

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().

◆ stream

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

Definition at line 58 of file text.hh.

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


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

Generated on Fri Jul 3 2020 15:53:57 for gem5 by doxygen 1.8.13