diff options
author | Brad Danofsky <bradley.danofsky@amd.com> | 2011-04-20 11:14:52 -0700 |
---|---|---|
committer | Brad Danofsky <bradley.danofsky@amd.com> | 2011-04-20 11:14:52 -0700 |
commit | 46a538ceab12c89f1806293f6e5f4e89f6605da4 (patch) | |
tree | 5785b1f6dbac1aa3a06ff5569e8bc17cc9463d52 /src/base/stats/info.hh | |
parent | dd38b4b83e6c8bf7a9031dfeead13a5ef354f46c (diff) | |
download | gem5-46a538ceab12c89f1806293f6e5f4e89f6605da4.tar.xz |
stats: add user settable separator string for arrayed stats
Default is '::', so no visible change unless it is overridden
Diffstat (limited to 'src/base/stats/info.hh')
-rw-r--r-- | src/base/stats/info.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base/stats/info.hh b/src/base/stats/info.hh index 9c81442ee..1759b4796 100644 --- a/src/base/stats/info.hh +++ b/src/base/stats/info.hh @@ -69,6 +69,8 @@ class Info public: /** The name of the stat. */ std::string name; + /** The separator string used for vectors, dist, etc. */ + static std::string separatorString; /** The description of the stat. */ std::string desc; /** The formatting flags. */ @@ -93,6 +95,7 @@ class Info /** Set the name of this statistic */ void setName(const std::string &name); + void setSeparator(std::string _sep) { separatorString = _sep;} /** * Check that this stat has been set up properly and is ready for |