gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
Stats::ScalarPrint Struct Reference

Public Member Functions

 ScalarPrint (bool spaces)
 
void update (Result val, Result total)
 
void operator() (ostream &stream, bool oneLine=false) const
 

Public Attributes

Result value
 
string name
 
string desc
 
Flags flags
 
bool descriptions
 
bool spaces
 
int precision
 
Result pdf
 
Result cdf
 
int nameSpaces
 
int valueSpaces
 
int pdfstrSpaces
 
int cdfstrSpaces
 

Detailed Description

Definition at line 223 of file text.cc.

Constructor & Destructor Documentation

◆ ScalarPrint()

Stats::ScalarPrint::ScalarPrint ( bool  spaces)
inline

Definition at line 239 of file text.cc.

References cdfstrSpaces, nameSpaces, pdfstrSpaces, spaces, and valueSpaces.

Member Function Documentation

◆ operator()()

void Stats::ScalarPrint::operator() ( ostream &  stream,
bool  oneLine = false 
) const

◆ update()

void Stats::ScalarPrint::update ( Result  val,
Result  total 
)

Definition at line 257 of file text.cc.

References cdf, pdf, Stats::total, X86ISA::val, and value.

Referenced by Stats::VectorPrint::operator()(), and Stats::DistPrint::operator()().

Member Data Documentation

◆ cdf

Result Stats::ScalarPrint::cdf

◆ cdfstrSpaces

int Stats::ScalarPrint::cdfstrSpaces

Definition at line 237 of file text.cc.

Referenced by operator()(), and ScalarPrint().

◆ desc

string Stats::ScalarPrint::desc

◆ descriptions

bool Stats::ScalarPrint::descriptions

◆ flags

Flags Stats::ScalarPrint::flags

◆ name

string Stats::ScalarPrint::name

◆ nameSpaces

int Stats::ScalarPrint::nameSpaces

Definition at line 234 of file text.cc.

Referenced by operator()(), and ScalarPrint().

◆ pdf

Result Stats::ScalarPrint::pdf

◆ pdfstrSpaces

int Stats::ScalarPrint::pdfstrSpaces

Definition at line 236 of file text.cc.

Referenced by operator()(), and ScalarPrint().

◆ precision

int Stats::ScalarPrint::precision

◆ spaces

bool Stats::ScalarPrint::spaces

Definition at line 230 of file text.cc.

Referenced by operator()(), and ScalarPrint().

◆ value

Result Stats::ScalarPrint::value

◆ valueSpaces

int Stats::ScalarPrint::valueSpaces

Definition at line 235 of file text.cc.

Referenced by operator()(), and ScalarPrint().


The documentation for this struct was generated from the following file:

Generated on Wed Sep 30 2020 14:03:12 for gem5 by doxygen 1.8.17