40 using namespace Stats;
45 : iplLast(0), iplLastTick(0)
56 .
desc(
"number of arm instructions executed")
61 .
desc(
"number of quiesce instructions executed")
67 .
desc(
"number of times we switched to this ipl")
74 .
desc(
"number of times we switched to this ipl from a different ipl")
81 .
desc(
"number of cycles we spent at this ipl")
87 .
desc(
"fraction of swpipl calls that actually changed the ipl")
97 assert(ipl >= 0 && ipl <= 0x1f &&
"invalid IPL\n");
const FlagsType pdf
Print the percent of the total that this entry represents.
const FlagsType nonan
Don't print if this is NAN.
void regStats(const std::string &name)
void serialize(CheckpointOut &cp) const override
Serialize an object.
Derived & flags(Flags _flags)
Set the flags and marks this stat to print at the end of simulation.
Derived & init(size_type size)
Set this vector to have the given size.
const std::string name() const
#define UNSERIALIZE_SCALAR(scalar)
Tick curTick()
The current simulated tick.
const FlagsType total
Print the total.
#define SERIALIZE_SCALAR(scalar)
Derived & name(const std::string &name)
Set the name and marks this stat to print at the end of simulation.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
std::ostream CheckpointOut
Derived & desc(const std::string &_desc)
Set the description and marks this stat to print at the end of simulation.
const FlagsType nozero
Don't print if this is zero.