gem5
v20.0.0.3
|
Templatized storage and interface for a simple scalar stat. More...
#include <statistics.hh>
Classes | |
struct | Params |
Public Member Functions | |
StatStor (Info *info) | |
Builds this storage element and calls the base constructor of the datatype. More... | |
void | set (Counter val) |
The the stat to the given value. More... | |
void | inc (Counter val) |
Increment the stat by the given value. More... | |
void | dec (Counter val) |
Decrement the stat by the given value. More... | |
Counter | value () const |
Return the value of this stat as its base type. More... | |
Result | result () const |
Return the value of this stat as a result type. More... | |
void | prepare (Info *info) |
Prepare stat data for dumping or serialization. More... | |
void | reset (Info *info) |
Reset stat value to default. More... | |
bool | zero () const |
Private Attributes | |
Counter | data |
The statistic value. More... | |
Templatized storage and interface for a simple scalar stat.
Definition at line 491 of file statistics.hh.
|
inline |
Builds this storage element and calls the base constructor of the datatype.
Definition at line 505 of file statistics.hh.
|
inline |
Decrement the stat by the given value.
val | The new value. |
Definition at line 523 of file statistics.hh.
References X86ISA::val.
|
inline |
Increment the stat by the given value.
val | The new value. |
Definition at line 518 of file statistics.hh.
References X86ISA::val.
|
inline |
Prepare stat data for dumping or serialization.
Definition at line 537 of file statistics.hh.
|
inline |
Reset stat value to default.
Definition at line 541 of file statistics.hh.
|
inline |
Return the value of this stat as a result type.
Definition at line 533 of file statistics.hh.
References data.
|
inline |
The the stat to the given value.
val | The new value. |
Definition at line 513 of file statistics.hh.
References X86ISA::val.
|
inline |
Return the value of this stat as its base type.
Definition at line 528 of file statistics.hh.
References data.
|
inline |
Definition at line 546 of file statistics.hh.
|
private |
The statistic value.
Definition at line 495 of file statistics.hh.