summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-01-15 16:33:58 -0500
committerNathan Binkert <binkertn@umich.edu>2004-01-15 16:33:58 -0500
commitc9f2aa8c1888aef0f383bdda0ce6d7d7b5a0c7fc (patch)
treeed868f2fced2df68be3f47237dcdeb04f3a3882e /test
parent81575e74e7a22a244df62cd998ba337ed6cdc2f2 (diff)
downloadgem5-c9f2aa8c1888aef0f383bdda0ce6d7d7b5a0c7fc.tar.xz
Make each stat take up one full line. This allows us to use grep
to find and remove stats from the files so we can put less burden on the python interpreter. base/statistics.cc: Manually insert newlines into the python code so that we now have one stat per line. (Make it so we can use grep -v to remove stats) test/stattest.cc: update to reflect changes in how python is accessed --HG-- extra : convert_revision : 554edcf9c795b33d00d3d15554447c8accebebfa
Diffstat (limited to 'test')
-rw-r--r--test/stattest.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/stattest.cc b/test/stattest.cc
index d4ae5d1fd..8dd8eeb8e 100644
--- a/test/stattest.cc
+++ b/test/stattest.cc
@@ -510,10 +510,8 @@ main(int argc, char *argv[])
s12.sample(100);
// dump(cout, mode_simplescalar);
- ofstream file("/tmp/stats.py");
- dump(file, "stattest", mode_python);
- file.close();
-
+ python_start("/tmp/stats.py");
+ python_dump("stattest", "all");
return 0;
}