summaryrefslogtreecommitdiff
path: root/base/kgdb.h
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-12-24 03:25:36 -0500
committerNathan Binkert <binkertn@umich.edu>2003-12-24 03:25:36 -0500
commit55d94ba2e8d0375504f0a6e61d46c9ddc5b8b5d3 (patch)
treef7de5f53ead518febe9a9a018043e78f5ae3d646 /base/kgdb.h
parent3f5ca9e5e81cb921e10ba395f74a6fadd793525c (diff)
downloadgem5-55d94ba2e8d0375504f0a6e61d46c9ddc5b8b5d3.tar.xz
Add python output support to the statistics package!
base/statistics.cc: base/statistics.hh: - add python output support to the statistics package - each statistic type has a python() member function that takes a Python object to which the stat will output it's python representation - add getStatData hack so that the StatData pointer can be looked up by the proxies with their opaque pointer to the stat they're proxying for. This is necessary because the proxy really proxies for the bin and not the stat. Be nice to figure out how to get rid of it. The hack is used so that the str() function of a proxy can properly name itself. - To print formula stats, every stat has a str() function that converts that stat to a string that python can execute to get a value. test/Makefile: add python stuff test/stattest.cc: add more tests and test python support --HG-- extra : convert_revision : 513814ab0a125606897f2c57dccdf22879032ef9
Diffstat (limited to 'base/kgdb.h')
0 files changed, 0 insertions, 0 deletions