stats: Add SQLite database as an output format
Review Request #1638 - Created Jan. 15, 2013 and updated - Latest diff uploaded
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9709:8a3d4a250bc9 --------------------------- stats: Add SQLite database as an output format This patch adds a second output format (in addition to the stats.txt) which stores the stats in an SQLite database using SQLAlchemy. The information about each stat is written to the database once to avoid repeated data. Each dump is given an accociated dump ID which is based on the the number of dumps stored in the database. To enable the SQL output, a parameter has been added to gem5. For example, ./build/ARM/gem5.fast --stats-db-file=stats.db .... will stored the stats in a file called "stats.db". By default SQL stats are disabled. In order to disable the text-based stats output use --stats-file="". For backwards compatibility the default behaviour creates stats.txt. In case SQLAlchemy is unavailable, only stats.txt is generated. If text-based stats are explicitly disabled, gem5 will fatal.
Generated a number of databases
