stats: Add sparse histogram to python stats
Review Request #1640 - Created Jan. 15, 2013 and updated
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9517:a625622cd8a1 --------------------------- stats: Add sparse histogram to python stats This patch adds the sparse histogram to the python stats. This histogram is not contiguous, and values are stored as an std::map in C++. When this is moved into python using SWIG it is stored as a python dictionary. When generating the text based statistics output, the histogram is stored in the same way as in the old C++ based statistics system. When generating the SQL based output the sparse histogram is stored into a separate table. This is neccessary as the columns required to store the histogram are not compatible with any other other distributions. Currently the sparse histogram is only used in the communication monitor to store the address map.
Ran with CommMonitor
Posted (Jan. 25, 2013, 1:20 a.m.)
-
src/python/m5/stats/display.py (Diff revision 1) -
This doesn't make sense to me. You should be registering a SparseHistogram (or whatever it is called), and then you don't need the junk for checking.
Review request changed
Updated (Jan. 28, 2013, 6:37 p.m.)
Description: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+232 -2) |
