changeset babe6d1f91f7 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=babe6d1f91f7
description:
        stats: expose statistics to python

diffstat:

1 file changed, 7 insertions(+), 1 deletion(-)
src/python/swig/stats.i |    8 +++++++-

diffs (32 lines):

diff -r 0fb959250892 -r babe6d1f91f7 src/python/swig/stats.i
--- a/src/python/swig/stats.i   Wed Apr 22 13:38:01 2009 -0700
+++ b/src/python/swig/stats.i   Wed Apr 22 13:38:01 2009 -0700
@@ -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 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
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to