summaryrefslogtreecommitdiff
path: root/util/stats/dbinit.py
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2006-06-10 13:08:43 -0400
committerNathan Binkert <binkertn@umich.edu>2006-06-10 13:08:43 -0400
commit7af93dbdf6c86a915b99da1688f51dc12e7aafff (patch)
tree11f7f8cd446fda9628dd380acf8f65db1f7869cd /util/stats/dbinit.py
parentf1fab2a4469d6cb2e55ebac15da02f8c1fcb7055 (diff)
downloadgem5-7af93dbdf6c86a915b99da1688f51dc12e7aafff.tar.xz
Remove all binning stuff
--HG-- extra : convert_revision : 6da2b3b0b6c2824f2064d42670fd8383edb7c718
Diffstat (limited to 'util/stats/dbinit.py')
-rw-r--r--util/stats/dbinit.py35
1 files changed, 2 insertions, 33 deletions
diff --git a/util/stats/dbinit.py b/util/stats/dbinit.py
index ffae88cdb..203582478 100644
--- a/util/stats/dbinit.py
+++ b/util/stats/dbinit.py
@@ -98,28 +98,6 @@ class MyDB(object):
) TYPE=InnoDB''')
#
- # We keep the bin names separate so that the data table doesn't get
- # huge since bin names are frequently repeated.
- #
- # COLUMNS:
- # 'id' is the unique bin identifer.
- # 'name' is the string name for the bin.
- #
- # INDEXES:
- # 'bin' is indexed to get the name of a bin when data is retrieved
- # via the data table.
- # 'name' is indexed to get the bin id for a named bin when you want
- # to search the data table based on a specific bin.
- #
- self.query('''
- CREATE TABLE bins(
- bn_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
- bn_name VARCHAR(255) NOT NULL,
- PRIMARY KEY(bn_id),
- UNIQUE (bn_name)
- ) TYPE=InnoDB''')
-
- #
# The stat table gives us all of the data for a particular stat.
#
# COLUMNS:
@@ -220,14 +198,12 @@ class MyDB(object):
# 'run' is the run that the data was generated from. Details up in
# the run table
# 'tick' is a timestamp generated by the simulator.
- # 'bin' is the name of the bin that the data was generated in, if
- # any.
# 'data' is the actual stat value.
#
# INDEXES:
# 'stat' is indexed so that a user can find all of the data for a
# particular stat. It is not unique, because that specific stat
- # can be found in many runs, bins, and samples, in addition to
+ # can be found in many runs and samples, in addition to
# having entries for the mulidimensional cases.
# 'run' is indexed to allow a user to remove all of the data for a
# particular execution run. It can also be used to allow the
@@ -240,11 +216,10 @@ class MyDB(object):
dt_y SMALLINT NOT NULL,
dt_run SMALLINT UNSIGNED NOT NULL,
dt_tick BIGINT UNSIGNED NOT NULL,
- dt_bin SMALLINT UNSIGNED NOT NULL,
dt_data DOUBLE NOT NULL,
INDEX (dt_stat),
INDEX (dt_run),
- UNIQUE (dt_stat,dt_x,dt_y,dt_run,dt_tick,dt_bin)
+ UNIQUE (dt_stat,dt_x,dt_y,dt_run,dt_tick)
) TYPE=InnoDB;''')
#
@@ -396,12 +371,6 @@ class MyDB(object):
WHERE dt_stat IS NULL''')
self.query('''
- DELETE bins
- FROM bins
- LEFT JOIN data ON bn_id=dt_bin
- WHERE dt_bin IS NULL''')
-
- self.query('''
DELETE events
FROM events
LEFT JOIN runs ON ev_run=rn_id