diff options
author | Nathan Binkert <binkertn@umich.edu> | 2007-02-17 22:52:32 -0800 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2007-02-17 22:52:32 -0800 |
commit | e94103397c58ffe05d4c5c7f536edabfb1d6861b (patch) | |
tree | 9109a4c2f22b3681c48ab6047c3223e70297db12 /src/base/stats/text.cc | |
parent | 01f32efa4b3c25ad6323ec3e76d756b442a8f419 (diff) | |
download | gem5-e94103397c58ffe05d4c5c7f536edabfb1d6861b.tar.xz |
Get rid of the Statistics and Statreset ParamContexts, and
expose all of the relevant functionality to python. Clean
up the mysql code while we're at it.
--HG--
extra : convert_revision : 5b711202a5a452b8875ebefb136a156b65c24279
Diffstat (limited to 'src/base/stats/text.cc')
-rw-r--r-- | src/base/stats/text.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/base/stats/text.cc b/src/base/stats/text.cc index ae0d65537..66c5955d7 100644 --- a/src/base/stats/text.cc +++ b/src/base/stats/text.cc @@ -725,4 +725,25 @@ Text::visit(const FormulaData &data) visit((const VectorData &)data); } +bool +initText(const string &filename, bool desc, bool compat) +{ + static Text text; + static bool connected = false; + + if (connected) + return false; + + extern list<Output *> OutputList; + + text.open(*simout.find(filename)); + text.descriptions = desc; + text.compat = compat; + OutputList.push_back(&text); + connected = true; + + return true; +} + + /* namespace Stats */ } |