gem5/util/stats
Nathan Binkert e00237e49e Major cleanup of the statistics handling code
util/stats/db.py:
    Build a result object as the result of a query operation so it is
    easier to populate and contains a bit more information than just
    a big dict.  Also change the next level data into a matrix instead
    of a dict of dicts.
    Move the "get" function into the Database object.  (The get function
    is used by the output parsing function as the interface for accessing
    backend storage, same interface for profile stuff.)
    Change the old get variable to the method variable, it describes how
    the get works, (whether using sum, stdev, etc.)
util/stats/display.py:
    Clean up the display functions, mostly formatting.
    Handle values the way they should be now.
util/stats/info.py:
    Totally re-work how values are accessed from their data store.
    Access individual values on demand instead of calculating everything
    and passing up a huge result from the bottom.
    This impacts the way that proxying works, and in general, everything
    is now esentially a proxy for the lower level database.  Provide new
    operators: unproxy, scalar, vector, value, values, total, and len which
    retrieve the proper result from the object they are called on.
    Move the ProxyGroup stuff (proxies of proxies!) here from the now gone
    proxy.py file and integrate the shared parts of the code.  The ProxyGroup
    stuff allows you to write formulas without specifying the statistics
    until evaluation time.

    Get rid of global variables!
util/stats/output.py:
    Move the dbinfo stuff into the Database itself.  Each source should
    have it's own get() function for accessing it's data.
    This get() function behaves a bit differently than before in that it
    can return vectors as well, deal with these vectors and with no result
    conditions better.
util/stats/stats.py:
    the info module no longer has the source global variable, just
    create the database source and pass it around as necessary

--HG--
extra : convert_revision : 8e5aa228e5d3ae8068ef9c40f65b3a2f9e7c0cff
2005-10-21 16:29:13 -04:00
..
__init__.py Totally re-work the way that jobfiles are done so there is more 2005-09-17 16:51:26 -04:00
barchart.py Totally re-work the way that jobfiles are done so there is more 2005-09-17 16:51:26 -04:00
categories.py Add new function profiling stuff, wrap the pc_sample stuff into it. 2005-10-18 19:07:42 -04:00
db.py Major cleanup of the statistics handling code 2005-10-21 16:29:13 -04:00
dbinit.py Cleanup copyright stuff. Add our copyright files that 2005-06-05 11:02:38 -04:00
display.py Major cleanup of the statistics handling code 2005-10-21 16:29:13 -04:00
flags.py Totally re-do/reorganize the python part of the statistics code 2004-08-09 21:20:52 -04:00
info.py Major cleanup of the statistics handling code 2005-10-21 16:29:13 -04:00
orderdict.py Totally re-work the way that jobfiles are done so there is more 2005-09-17 16:51:26 -04:00
output.py Major cleanup of the statistics handling code 2005-10-21 16:29:13 -04:00
print.py Cleanup copyright stuff. Add our copyright files that 2005-06-05 11:02:38 -04:00
profile.py Add new function profiling stuff, wrap the pc_sample stuff into it. 2005-10-18 19:07:42 -04:00
stats.py Major cleanup of the statistics handling code 2005-10-21 16:29:13 -04:00