stats: Add example script to extract stats from SQL database
Review Request #1639 - Created Jan. 15, 2013 and updated
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9492:35ce7e2339f3 --------------------------- stats: Add example script to extract stats from SQL database This patch adds a simple python stript which is able to extract data from the database based on the name of the stat. It is able to either print the result to the screen, or write it to an output CSV file. It extracts the data for a single dump. This script is designed as a rough reference for the creation of more sophisticated stats manipulation scripts, and is therefore not feature rich.
Posted (Jan. 25, 2013, 1:16 a.m.)
It seems to me that the majority of the code in this script should be abstracted into classes/functions which are then used by the script, but could also be used by others. I'm not asking for added functionality, just a separation so that it can be used without copy/paste.
