viff

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 diff
     1.1 --- a/viff/runtime.py	Sun Sep 21 19:25:14 2008 +0200
     1.2 +++ b/viff/runtime.py	Fri Sep 26 21:52:00 2008 +0200
     1.3 @@ -1124,7 +1124,7 @@
     1.4          # http://bugs.python.org/issue1375 since the start and stop
     1.5          # calls are in different stack frames.
     1.6          import hotshot
     1.7 -        prof = hotshot.Profile("viff-%d.prof" % id)
     1.8 +        prof = hotshot.Profile("player-%d.prof" % id)
     1.9          old_run = reactor.run
    1.10          def new_run(*args, **kwargs):
    1.11              print "Starting reactor with profiling"
    1.12 @@ -1134,7 +1134,7 @@
    1.13              import hotshot.stats
    1.14              print "Loading profiling statistics...",
    1.15              sys.stdout.flush()
    1.16 -            stats = hotshot.stats.load("viff-%d.prof" % id)
    1.17 +            stats = hotshot.stats.load("player-%d.prof" % id)
    1.18              print "done."
    1.19              print
    1.20              stats.strip_dirs()