From 9dcfdce732260895096b8c5d439c8ed8efb2c47e Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Sun, 28 Dec 2003 12:48:13 -0500 Subject: Improve python output support fix some bugs base/statistics.cc: - Move the python dump stream stuff into the statistics package because it needs more control over the file when there are multiple dumps - add a subname to the output - make all of the stats a list instead of variable arguments to get around the 255 argument limit - the description needs to be triple quoted - avoid errors for formulas that don't have any root element set up. base/statistics.hh: - get rid of mode_python and just separate python dumping from regular stats dumping - fix a huge bug that made a Formula use a VectorData instead of a FormulaData --HG-- extra : convert_revision : 7303cff3ccdcc3d306ab17375219fc7fecac7e5e --- base/statistics.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'base/statistics.hh') diff --git a/base/statistics.hh b/base/statistics.hh index 8c7566391..ce20043a3 100644 --- a/base/statistics.hh +++ b/base/statistics.hh @@ -120,8 +120,7 @@ const StatFlags __reserved = init | print | __substat; enum DisplayMode { mode_m5, - mode_simplescalar, - mode_python + mode_simplescalar }; extern DisplayMode DefaultMode; @@ -2931,7 +2930,7 @@ class Temp; class Formula : public WrapVec + FormulaData> { public: /** @@ -3132,8 +3131,9 @@ class Temp */ void check(); -void dump(std::ostream &stream, const std::string &name = "", - DisplayMode mode = DefaultMode); +void dump(std::ostream &stream, DisplayMode mode = DefaultMode); +void python_start(const std::string &file); +void python_dump(const std::string &name, const std::string &subname); void reset(); void registerResetCallback(Callback *cb); -- cgit v1.2.3