Review Board 2.0.15


stats: Add sparse histogram to python stats

Review Request #1640 - Created Jan. 15, 2013 and updated - Latest diff uploaded

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