|
gem5
v19.0.0.0
|
Templatized storage and interface for a sparse histogram stat. More...
#include <statistics.hh>
Classes | |
| struct | Params |
| The parameters for a sparse histogram stat. More... | |
Public Member Functions | |
| SparseHistStor (Info *info) | |
| 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 buckets in this distribution. More... | |
| bool | zero () const |
| Returns true if any calls to sample have been made. More... | |
| void | prepare (Info *info, SparseHistData &data) |
| void | reset (Info *info) |
| Reset stat value to default. More... | |
Private Attributes | |
| Counter | samples |
| Counter for number of samples. More... | |
| MCounter | cmap |
| Counter for each bucket. More... | |
Templatized storage and interface for a sparse histogram stat.
Definition at line 2910 of file statistics.hh.
|
inline |
Definition at line 2926 of file statistics.hh.
References Stats::InfoProxy< Stat, Base >::reset().
|
inline |
Definition at line 2960 of file statistics.hh.
References Stats::SparseHistData::cmap, and Stats::SparseHistData::samples.
|
inline |
Reset stat value to default.
Definition at line 2975 of file statistics.hh.
|
inline |
Add a value to the distribution for the given number of times.
| val | The value to add. |
| number | The number of times to add the value. |
Definition at line 2937 of file statistics.hh.
References X86ISA::val.
|
inline |
Return the number of buckets in this distribution.
Definition at line 2947 of file statistics.hh.
|
inline |
Returns true if any calls to sample have been made.
Definition at line 2954 of file statistics.hh.
|
private |
Counter for each bucket.
Definition at line 2923 of file statistics.hh.
|
private |
Counter for number of samples.
Definition at line 2921 of file statistics.hh.