summaryrefslogtreecommitdiff
path: root/util/stats/info.py
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2005-01-13 23:59:39 -0500
committerAli Saidi <saidi@eecs.umich.edu>2005-01-13 23:59:39 -0500
commit21c6dd80d76c888e662bfd511cc7764d57b29d9f (patch)
treeb6d0f17dc079a300850a01dd672d9e6365abeb71 /util/stats/info.py
parent57eb1ff624bfb48d839c906190048e3dd2dc7cb2 (diff)
downloadgem5-21c6dd80d76c888e662bfd511cc7764d57b29d9f.tar.xz
fix a display bug
add option to limit results to a set of ticks fix ticks code to work util/stats/info.py: change samples -> ticks and pass all parameters util/stats/stats.py: add option to select a set of ticks and fix display bug --HG-- extra : convert_revision : eca80a8c6bb75cf82bf1624f3d0170690b2928af
Diffstat (limited to 'util/stats/info.py')
-rw-r--r--util/stats/info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/stats/info.py b/util/stats/info.py
index fa318a650..d11619765 100644
--- a/util/stats/info.py
+++ b/util/stats/info.py
@@ -152,7 +152,7 @@ class Statistic(object):
if attr == 'bins':
if value is not None:
value = source.getBin(value)
- elif attr == 'samples' and type(value) is str:
+ elif attr == 'ticks' and type(value) is str:
value = [ int(x) for x in value.split() ]
self.__dict__[attr] = value
@@ -252,7 +252,7 @@ class FormulaStat(object):
class Scalar(Statistic,FormulaStat):
def getValue(self):
- return source.data(self, self.bins)
+ return source.data(self, self.bins, self.ticks)
def display(self):
import display