summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-04-22 13:38:01 -0700
committerNathan Binkert <nate@binkert.org>2009-04-22 13:38:01 -0700
commitb4816037bacb28e3be84cd097d63eaa52d4f7795 (patch)
treec70476f36e5fbed9260401585e7d7536db64865f
parentaa9b4e6a6809bb1f7551cf9231376e1a7fbb54ad (diff)
downloadgem5-b4816037bacb28e3be84cd097d63eaa52d4f7795.tar.xz
stats: expose statistics to python
-rw-r--r--src/python/swig/stats.i8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/python/swig/stats.i b/src/python/swig/stats.i
index ef58687aa..fe10b358f 100644
--- a/src/python/swig/stats.i
+++ b/src/python/swig/stats.i
@@ -30,6 +30,7 @@
%module stats
+%include "std_list.i"
%include "std_string.i"
%{
@@ -39,6 +40,9 @@
#include "sim/stat_control.hh"
%}
+%import "base/stats/types.hh"
+%include "base/stats/info.hh"
+
namespace Stats {
void initSimStats();
void initText(const std::string &filename, bool desc);
@@ -53,7 +57,9 @@ void prepare();
void dump();
void reset();
-/* namespace Stat */ }
+std::list<Info *> &statsList();
+
+/* namespace Stats */ }
%wrapper %{
// fix up module name to reflect the fact that it's inside the m5 package