Go to the documentation of this file.
29 #ifndef __BASE_STATS_INFO_HH__
30 #define __BASE_STATS_INFO_HH__
40 typedef ::Flags<FlagsType>
Flags;
108 virtual bool check()
const = 0;
124 virtual void reset() = 0;
130 virtual bool zero()
const = 0;
240 virtual std::string
str()
const = 0;
260 #endif // __BASE_STATS_INFO_HH__
std::vector< std::string > subnames
Names and descriptions of subfields.
std::vector< std::string > subdescs
VResult rvec
Local storage for the entry values, used for printing.
::Flags< FlagsType > Flags
const FlagsType init
This Stat is Initialized.
virtual bool zero() const =0
virtual const VCounter & value() const =0
virtual void visit(Output &visitor)=0
Visitor entry for outputing statistics data.
Data structure of sparse histogram.
std::vector< std::string > subdescs
VCounter cvec
Local storage for the entry values, used for printing.
std::vector< std::string > subnames
Names and descriptions of subfields.
std::vector< std::string > y_subnames
std::map< Counter, int > MCounter
map of counters
const FlagsType display
Print this stat.
void setSeparator(std::string _sep)
const FlagsType cdf
Print the cumulative percentage of total upto this entry.
virtual Result result() const =0
const FlagsType none
Nothing extra to print.
static int id_count
A unique stat ID for each stat in the simulator.
const StorageParams * storageParams
virtual Result total() const =0
virtual bool check() const =0
Check that this stat has been set up properly and is ready for use.
virtual size_type size() const =0
virtual void enable()
Enable the stat for use.
virtual Counter value() const =0
void enable()
Enable the stat for use.
const FlagsType oneline
Print all values on a single line.
static std::string separatorString
The separator string used for vectors, dist, etc.
const FlagsType __reserved
Mask of flags that can't be set directly.
virtual Result total() const =0
virtual Result total() const =0
virtual const VResult & result() const =0
std::vector< std::string > subdescs
virtual void prepare()=0
Prepare the stat for dumping.
virtual void reset()=0
Reset the stat to the default state.
virtual size_type size() const =0
std::vector< DistData > data
const FlagsType dist
Print the distribution.
const FlagsType nozero
Don't print if this is zero.
double Result
All results are doubles.
double Counter
All counters are of 64-bit values.
std::vector< std::string > subnames
Names and descriptions of subfields.
void setName(const std::string &name)
Set the name of this statistic.
const FlagsType pdf
Print the percent of the total that this entry represents.
Flags flags
The formatting flags.
std::string name
The name of the stat.
DistData data
Local storage for the entry values, used for printing.
const Info * prereq
A pointer to a prerequisite Stat.
SparseHistData data
Local storage for the entry values, used for printing.
int precision
The display precision.
std::string desc
The description of the stat.
static bool less(Info *stat1, Info *stat2)
Checks if the first stat's name is alphabetically less than the second.
void enable()
Enable the stat for use.
const FlagsType total
Print the total.
void enable()
Enable the stat for use.
const FlagsType nonan
Don't print if this is NAN.
Generated on Wed Sep 30 2020 14:02:08 for gem5 by doxygen 1.8.17