|
gem5 v23.0.0.1
|
Templatized storage for distribution that calculates per tick mean and variance. More...
#include <storage.hh>
Classes | |
| struct | Params |
Public Member Functions | |
| AvgSampleStor (const StorageParams *const storage_params) | |
| Create and initialize this storage. | |
| void | sample (Counter val, int number) |
| Add a value to the distribution for the given number of times. | |
| size_type | size () const |
| Return the number of entries, in this case 1. | |
| bool | zero () const |
| Return true if no samples have been added. | |
| void | prepare (const StorageParams *const storage_params, DistData &data) |
| void | reset (const StorageParams *const storage_params) |
| Reset stat value to default. | |
Private Attributes | |
| Counter | sum |
| Current total. | |
| Counter | squares |
| Current sum of squares. | |
Templatized storage for distribution that calculates per tick mean and variance.
Definition at line 637 of file storage.hh.
|
inline |
Create and initialize this storage.
Definition at line 654 of file storage.hh.
|
inline |
Definition at line 684 of file storage.hh.
References gem5::curTick(), data, gem5::statistics::Deviation, squares, sum, and gem5::statistics::DistParams::type.
|
inline |
|
inline |
Add a value to the distribution for the given number of times.
Update the running sum and sum of squares.
| val | The value to add. |
| number | The number of times to add the value. |
Definition at line 665 of file storage.hh.
References squares, sum, and gem5::X86ISA::val.
|
inline |
Return the number of entries, in this case 1.
Definition at line 675 of file storage.hh.
Referenced by TEST().
|
inline |
Return true if no samples have been added.
Definition at line 681 of file storage.hh.
References sum.
|
private |
Current sum of squares.
Definition at line 643 of file storage.hh.
|
private |