summaryrefslogtreecommitdiff
path: root/util/stats/db.py
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-09-17 16:51:26 -0400
committerNathan Binkert <binkertn@umich.edu>2005-09-17 16:51:26 -0400
commit02098f8e7b7f13181b41606d8cc3f0d9bd611e65 (patch)
treec8111e2f2f89bbc8532be585779fb251dff700f2 /util/stats/db.py
parentf88d7c7456ed0064316ef46b59ab71a3c25e91f1 (diff)
downloadgem5-02098f8e7b7f13181b41606d8cc3f0d9bd611e65.tar.xz
Totally re-work the way that jobfiles are done so there is more
information that can be used for other aspects of sending jobs. New graphing output stuff with matplotlib. util/pbs/job.py: Shuffle code around and create the JobDir class which encapsulates all of the functionality needed for making, organizing, and cleaning a job directory. Better status output util/pbs/jobfile.py: Majory re-working of the jobfile code. A job file now consists of several objects that describe how jobs should be run, it includes information about checkpoints, and graphing. util/pbs/send.py: use the new jobfile code. deal with the 15 character limit of pbs by truncating the name and using the raj hack. util/stats/db.py: fix the __str__ function for nodes provide __getitem__ for the Database class util/stats/stats.py: use the jobfile stuff to figure out what the proper naming and organziation of the graphs should be. move all output code to output.py, get rid of ploticus and use matplotlib --HG-- rename : util/categories.py => util/stats/categories.py extra : convert_revision : 0d793cbf6ad9492290e8ec875ce001c84095e1f7
Diffstat (limited to 'util/stats/db.py')
-rw-r--r--util/stats/db.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/stats/db.py b/util/stats/db.py
index 6e1ccec95..ab005e67b 100644
--- a/util/stats/db.py
+++ b/util/stats/db.py
@@ -101,7 +101,7 @@ class Node(object):
def __init__(self, name):
self.name = name
def __str__(self):
- return name
+ return self.name
class Database(object):
def __init__(self):
@@ -466,3 +466,6 @@ class Database(object):
runs[data.run][data.x][data.y] = data.data
return runs
+
+ def __getitem__(self, key):
+ return self.stattop[key]