|
gem5
v19.0.0.0
|
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 494 of file statistics.hh.
|
inline |
Builds this storage element and calls the base constructor of the datatype.
Definition at line 508 of file statistics.hh.
|
inline |
Decrement the stat by the given value.
| val | The new value. |
Definition at line 526 of file statistics.hh.
References X86ISA::val.
|
inline |
Increment the stat by the given value.
| val | The new value. |
Definition at line 521 of file statistics.hh.
References X86ISA::val.
|
inline |
Prepare stat data for dumping or serialization.
Definition at line 540 of file statistics.hh.
|
inline |
Reset stat value to default.
Definition at line 544 of file statistics.hh.
|
inline |
Return the value of this stat as a result type.
Definition at line 536 of file statistics.hh.
References data.
|
inline |
The the stat to the given value.
| val | The new value. |
Definition at line 516 of file statistics.hh.
References X86ISA::val.
|
inline |
Return the value of this stat as its base type.
Definition at line 531 of file statistics.hh.
References data.
|
inline |
Definition at line 549 of file statistics.hh.
|
private |
The statistic value.
Definition at line 498 of file statistics.hh.