changeset 951:bb06a2538928

Save profile results in player-X.prof files.
author Martin Geisler <mg@daimi.au.dk>
date Fri, 26 Sep 2008 21:52:00 +0200
parents 7cf3e950211d
children 4dd2fedb0a8b
files viff/runtime.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/viff/runtime.py	Sun Sep 21 19:25:14 2008 +0200
+++ b/viff/runtime.py	Fri Sep 26 21:52:00 2008 +0200
@@ -1124,7 +1124,7 @@
         # http://bugs.python.org/issue1375 since the start and stop
         # calls are in different stack frames.
         import hotshot
-        prof = hotshot.Profile("viff-%d.prof" % id)
+        prof = hotshot.Profile("player-%d.prof" % id)
         old_run = reactor.run
         def new_run(*args, **kwargs):
             print "Starting reactor with profiling"
@@ -1134,7 +1134,7 @@
             import hotshot.stats
             print "Loading profiling statistics...",
             sys.stdout.flush()
-            stats = hotshot.stats.load("viff-%d.prof" % id)
+            stats = hotshot.stats.load("player-%d.prof" % id)
             print "done."
             print
             stats.strip_dirs()