gem5
v21.2.1.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. 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 (const StorageParams *const storage_params, DistData &data) 
void  reset (const StorageParams *const storage_params) 
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 638 of file storage.hh.

inline 
Create and initialize this storage.
Definition at line 655 of file storage.hh.

inline 
Definition at line 685 of file storage.hh.
References gem5::curTick(), data, gem5::statistics::Deviation, squares, sum, and gem5::statistics::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 666 of file storage.hh.
References squares, sum, and gem5::X86ISA::val.
Referenced by TEST().

inline 
Return the number of entries, in this case 1.
Definition at line 676 of file storage.hh.
Referenced by TEST().

inline 
Return true if no samples have been added.
Definition at line 682 of file storage.hh.
References sum.
Referenced by TEST().

private 
Current sum of squares.
Definition at line 644 of file storage.hh.

private 