gem5
v21.0.1.0
|
Templatized storage for distribution that calculates per tick mean and variance. More...
#include <storage.hh>
Classes | |
struct | Params |
Public Member Functions | |
AvgSampleStor (Info *info) | |
Create and initialize this storage. More... | |
void | sample (Counter val, int number) |
Add a value to the distribution for the given number of times. More... | |
size_type | size () const |
Return the number of entries, in this case 1. More... | |
bool | zero () const |
Return true if no samples have been added. More... | |
void | prepare (Info *info, DistData &data) |
void | reset (Info *info) |
Reset stat value to default. More... | |
Private Attributes | |
Counter | sum |
Current total. More... | |
Counter | squares |
Current sum of squares. More... | |
Templatized storage for distribution that calculates per tick mean and variance.
Definition at line 634 of file storage.hh.
|
inline |
Create and initialize this storage.
Definition at line 651 of file storage.hh.
Definition at line 681 of file storage.hh.
References curTick(), data, Stats::Deviation, squares, Stats::Info::storageParams, sum, and Stats::DistParams::type.
Referenced by TEST().
|
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 662 of file storage.hh.
References squares, sum, and X86ISA::val.
Referenced by TEST().
|
inline |
Return the number of entries, in this case 1.
Definition at line 672 of file storage.hh.
Referenced by TEST().
|
inline |
Return true if no samples have been added.
Definition at line 678 of file storage.hh.
References sum.
Referenced by TEST().
|
private |
Current sum of squares.
Definition at line 640 of file storage.hh.
|
private |