diff options
author | Nathan Binkert <nate@binkert.org> | 2009-02-23 12:22:15 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-02-23 12:22:15 -0800 |
commit | fb74987c522a141b2f61d303377453cbbfae0788 (patch) | |
tree | 4943df9a3f7f920ba378c74786d0bde0f6debc12 /src/base/stats/statdb.hh | |
parent | bcb7e70178d2d15a8c30561311634df7a2c24c70 (diff) | |
download | gem5-fb74987c522a141b2f61d303377453cbbfae0788.tar.xz |
stats: Try to make the names of things more intuitive.
Basically, this means renaming several things called data to info, which
is information about the statistics. Things that are named data now are
actual data stored for the statistic.
Diffstat (limited to 'src/base/stats/statdb.hh')
-rw-r--r-- | src/base/stats/statdb.hh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/base/stats/statdb.hh b/src/base/stats/statdb.hh index a5b9be7eb..d12c6166b 100644 --- a/src/base/stats/statdb.hh +++ b/src/base/stats/statdb.hh @@ -40,12 +40,12 @@ class Python; namespace Stats { -class StatData; +class Info; namespace Database { -typedef std::map<void *, StatData *> stat_map_t; -typedef std::list<StatData *> stat_list_t; +typedef std::map<void *, Info *> stat_map_t; +typedef std::list<Info *> stat_list_t; // We wrap the database in a struct to make sure it is built in time. struct TheDatabase @@ -58,8 +58,8 @@ TheDatabase &db(); inline stat_map_t &map() { return db().map; } inline stat_list_t &stats() { return db().stats; } -StatData *find(void *stat); -void regStat(void *stat, StatData *data); +Info *find(void *stat); +void regStat(void *stat, Info *data); void regPrint(void *stat); inline std::string name() { return "Statistics Database"; } |