[pypy-svn] r63075 - pypy/trunk/pypy/translator/goal
cami at codespeak.net
cami at codespeak.net
Thu Mar 19 15:44:56 CET 2009
Author: cami
Date: Thu Mar 19 15:44:53 2009
New Revision: 63075
Modified:
pypy/trunk/pypy/translator/goal/targetgbfullprofiling.py
Log:
added exectuion count as arg to the target
Modified: pypy/trunk/pypy/translator/goal/targetgbfullprofiling.py
==============================================================================
--- pypy/trunk/pypy/translator/goal/targetgbfullprofiling.py (original)
+++ pypy/trunk/pypy/translator/goal/targetgbfullprofiling.py Thu Mar 19 15:44:53 2009
@@ -8,9 +8,11 @@
def entry_point(argv=None):
if argv is not None and len(argv) > 1:
filename = argv[1]
+ execution_seconds = int(argv[2])
else:
pos = str(9)
filename = ROM_PATH+"/rom"+pos+"/rom"+pos+".gb"
+ execution_seconds = 600
gameBoy = GameBoyProfiler()
try:
gameBoy.load_cartridge_file(str(filename))
@@ -18,7 +20,7 @@
gameBoy.load_cartridge_file(str(filename), verify=False)
start = time.time()
- gameBoy.mainLoop()
+ gameBoy.mainLoop(execution_seconds)
print time.time() - start
return 0
More information about the Pypy-commit
mailing list