summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-12-24 02:35:33 -0500
committerNathan Binkert <binkertn@umich.edu>2003-12-24 02:35:33 -0500
commit3f5ca9e5e81cb921e10ba395f74a6fadd793525c (patch)
tree747db4c896caed2c5642e46d8bef3bc5c0a2e06a /base
parent4bdf46c8193512589b978ee54d174fd9f891262e (diff)
downloadgem5-3f5ca9e5e81cb921e10ba395f74a6fadd793525c.tar.xz
initial basic hooks into the stats package to output python code
python dumping takes a name for the output data base/statistics.cc: base/statistics.hh: initial basic hooks into the stats package to output python code --HG-- extra : convert_revision : 37f52dc03df50aa90346dc9ca341f961e7e855e8
Diffstat (limited to 'base')
-rw-r--r--base/statistics.cc9
-rw-r--r--base/statistics.hh3
2 files changed, 6 insertions, 6 deletions
diff --git a/base/statistics.cc b/base/statistics.cc
index 191a72b07..03a99b80e 100644
--- a/base/statistics.cc
+++ b/base/statistics.cc
@@ -39,7 +39,6 @@
#include "base/statistics.hh"
#include "base/str.hh"
#include "base/trace.hh"
-#include "sim/universe.hh"
#ifdef __M5_NAN
float
@@ -81,7 +80,7 @@ namespace Database
map_t statMap;
public:
- void dump(ostream &stream, DisplayMode mode);
+ void dump(ostream &stream, const string &name, DisplayMode mode);
void display(ostream &stream, DisplayMode mode);
StatData *find(void *stat);
@@ -97,7 +96,7 @@ namespace Database
void
-Data::dump(ostream &stream, DisplayMode mode)
+Data::dump(ostream &stream, const string &name, DisplayMode mode)
{
MainBin *orig = MainBin::curBin();
@@ -1015,9 +1014,9 @@ check()
}
void
-dump(ostream &stream, DisplayMode mode)
+dump(ostream &stream, const string &name, DisplayMode mode)
{
- Database::StatDB().dump(stream, mode);
+ Database::StatDB().dump(stream, name, mode);
}
CallbackQueue resetQueue;
diff --git a/base/statistics.hh b/base/statistics.hh
index b855c30b8..b72be83bd 100644
--- a/base/statistics.hh
+++ b/base/statistics.hh
@@ -2983,7 +2983,8 @@ class Temp
*/
void check();
-void dump(std::ostream &stream, DisplayMode mode = DefaultMode);
+void dump(std::ostream &stream, const std::string &name = "",
+ DisplayMode mode = DefaultMode);
void reset();
void registerResetCallback(Callback *cb);