projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f427445
)
Fix some commands.
author
Nathan Binkert
<binkertn@umich.edu>
Wed, 17 Nov 2004 05:03:59 +0000
(
00:03
-0500)
committer
Nathan Binkert
<binkertn@umich.edu>
Wed, 17 Nov 2004 05:03:59 +0000
(
00:03
-0500)
util/stats/stats.py:
we only need the system if we're issuing one of the commands that
uses a stored formula.
--HG--
extra : convert_revision :
d129a00eeba46a03f7d600922d679aa0f43636be
util/stats/stats.py
patch
|
blob
|
history
diff --git
a/util/stats/stats.py
b/util/stats/stats.py
index 233eab521a8f3f0336e91aabcec9fad870eb2321..8ec889f09b00b1d4b18c57f726ad6014288e1d77 100755
(executable)
--- a/
util/stats/stats.py
+++ b/
util/stats/stats.py
@@
-132,8
+132,6
@@
def commands(options, command, args):
info.source.connect()
info.source.update_dict(globals())
- system = info.source.__dict__[options.system]
-
if type(options.get) is str:
info.source.get = options.get
@@
-232,6
+230,8
@@
def commands(options, command, args):
if len(args):
raise CommandException
+ system = info.source.__dict__[options.system]
+
if command == 'usertime':
import copy
kernel = copy.copy(system.full_cpu.numCycles)