summaryrefslogtreecommitdiff
path: root/src/base/stats/mysql.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2011-05-12 11:19:35 -0700
committerNathan Binkert <nate@binkert.org>2011-05-12 11:19:35 -0700
commit1177e7a3c861d77360074e97661952d427cd8640 (patch)
treefc15f17092933cb9591cfadb1da2728d40e776d1 /src/base/stats/mysql.hh
parent35b0c1d3910595875de67a34f6b993047470fd55 (diff)
downloadgem5-1177e7a3c861d77360074e97661952d427cd8640.tar.xz
stats: move code that loops over all stats into python
Diffstat (limited to 'src/base/stats/mysql.hh')
-rw-r--r--src/base/stats/mysql.hh10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/base/stats/mysql.hh b/src/base/stats/mysql.hh
index caee2a1c2..a305304a2 100644
--- a/src/base/stats/mysql.hh
+++ b/src/base/stats/mysql.hh
@@ -147,10 +147,12 @@ class MySql : public Output
// Implement Output
virtual bool valid() const;
- virtual void output();
+ virtual void begin();
+ virtual void end();
protected:
// Output helper
+ void commit();
void output(const ScalarInfo &info);
void output(const VectorInfo &info);
void output(const DistInfo &info);
@@ -169,17 +171,17 @@ class MySql : public Output
void configure(const FormulaInfo &info);
};
-bool initMySQL(std::string host, std::string database, std::string user,
+Output *initMySQL(std::string host, std::string database, std::string user,
std::string passwd, std::string project, std::string name,
std::string sample);
#if !USE_MYSQL
-inline bool
+inline Output *
initMySQL(std::string host, std::string user, std::string password,
std::string database, std::string project, std::string name,
std::string sample)
{
- return false;
+ return NULL;
}
#endif