summaryrefslogtreecommitdiff
path: root/util/stats/stats.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/stats.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/stats.py')
-rwxr-xr-xutil/stats/stats.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/util/stats/stats.py b/util/stats/stats.py
index 68ba2b8ea..7c1633888 100755
--- a/util/stats/stats.py
+++ b/util/stats/stats.py
@@ -202,6 +202,10 @@ def commands(options, command, args):
if options.graph:
graphdata(runs, options, stat.name, stat.name, stat)
else:
+ if options.ticks:
+ print 'only displaying sample %s' % options.ticks
+ stat.ticks = options.ticks
+
if options.binned:
print 'kernel ticks'
stat.bins = 'kernel'
@@ -216,7 +220,7 @@ def commands(options, command, args):
printdata(runs, stat)
print 'interrupt ticks'
- stat.bins = 'user'
+ stat.bins = 'interrupt'
printdata(runs, stat)
print 'total ticks'
@@ -249,7 +253,7 @@ def commands(options, command, args):
printdata(runs, stat)
print 'interrupt ticks'
- stat.bins = 'user'
+ stat.bins = 'interrupt'
printdata(runs, stat)
print 'total ticks'
@@ -578,8 +582,9 @@ if __name__ == '__main__':
options.get = None
options.binned = False
options.graph = False
+ options.ticks = False
- opts, args = getopts(sys.argv[1:], '-BEFGd:g:h:pr:s:u:')
+ opts, args = getopts(sys.argv[1:], '-BEFGd:g:h:pr:s:u:T:')
for o,a in opts:
if o == '-B':
options.binned = True
@@ -603,6 +608,8 @@ if __name__ == '__main__':
options.user = a
if o == '-s':
options.system = a
+ if o == '-T':
+ options.ticks = a
if len(args) == 0:
usage()