stats: expose statistics to python
This commit is contained in:
parent
aa9b4e6a68
commit
b4816037ba
1 changed files with 7 additions and 1 deletions
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
%module stats
|
%module stats
|
||||||
|
|
||||||
|
%include "std_list.i"
|
||||||
%include "std_string.i"
|
%include "std_string.i"
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
@ -39,6 +40,9 @@
|
||||||
#include "sim/stat_control.hh"
|
#include "sim/stat_control.hh"
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%import "base/stats/types.hh"
|
||||||
|
%include "base/stats/info.hh"
|
||||||
|
|
||||||
namespace Stats {
|
namespace Stats {
|
||||||
void initSimStats();
|
void initSimStats();
|
||||||
void initText(const std::string &filename, bool desc);
|
void initText(const std::string &filename, bool desc);
|
||||||
|
@ -53,7 +57,9 @@ void prepare();
|
||||||
void dump();
|
void dump();
|
||||||
void reset();
|
void reset();
|
||||||
|
|
||||||
/* namespace Stat */ }
|
std::list<Info *> &statsList();
|
||||||
|
|
||||||
|
/* namespace Stats */ }
|
||||||
|
|
||||||
%wrapper %{
|
%wrapper %{
|
||||||
// fix up module name to reflect the fact that it's inside the m5 package
|
// fix up module name to reflect the fact that it's inside the m5 package
|
||||||
|
|
Loading…
Reference in a new issue