projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f776ec8
)
Python atexit handlers are called in reverse order.
author
Nathan Binkert
<binkertn@umich.edu>
Tue, 6 Mar 2007 04:14:00 +0000
(20:14 -0800)
committer
Nathan Binkert
<binkertn@umich.edu>
Tue, 6 Mar 2007 04:14:00 +0000
(20:14 -0800)
Fix things so the stats dump happens last.
--HG--
extra : convert_revision :
ea842dbcbb77dd1c715c4e5b57d2470e558c4265
src/python/m5/__init__.py
patch
|
blob
|
history
diff --git
a/src/python/m5/__init__.py
b/src/python/m5/__init__.py
index 1c4a790206a6875d6e5290d54db96056723f3276..30ebcfe7d837476e7e597fc20f6716a5ae763e19 100644
(file)
--- a/
src/python/m5/__init__.py
+++ b/
src/python/m5/__init__.py
@@
-138,9
+138,11
@@
def simulate(*args, **kwargs):
def curTick():
return internal.event.cvar.curTick
+# Python exit handlers happen in reverse order. We want to dump stats last.
+atexit.register(internal.stats.dump)
+
# register our C++ exit callback function with Python
atexit.register(internal.core.doExitCleanup)
-atexit.register(internal.stats.dump)
# This loops until all objects have been fully drained.
def doDrain(root):