Review Board 2.0.15


stats: Add version information and timestamp to the SQL database

Review Request #1647 - Created Jan. 15, 2013 and updated - Latest diff uploaded

Information
Andreas Hansson
gem5
default
Reviewers
Default
Changeset 9500:18472246898b
---------------------------
stats: Add version information and timestamp to the SQL database

This patch adds both version information and a timestamp to the SQL database.
Therefore, another table, dbInfo, has been added to the database. The version
information has been added to allow simple database expansion in the future
and can therefore be used in a script which converts an older database into
a newer format.

The version is stored in two ways. First of all, it is stored as an integer.
This allows the version of the database to be checked and compared with ease.
The second version representation is as a string. This is designed to be human
readable, and allows the user to understand if they are using the right version
of the database, or processing script.

The timestamp has been added to act as a reference as it stores the time at
which the database was created. As the database is created at the start of the
simulation, it can therefore act as a reference for the particular gem5 run.
Please note that the time stored in the timestamp is in UTC.