[pypy-svn] r48675 - pypy/dist/pypy/translator/goal
antocuni at codespeak.net
antocuni at codespeak.net
Wed Nov 14 12:45:00 CET 2007
Author: antocuni
Date: Wed Nov 14 12:44:59 2007
New Revision: 48675
Modified:
pypy/dist/pypy/translator/goal/bench-unix.py
Log:
use the size of the jar file as the size of pypy-jvm
Modified: pypy/dist/pypy/translator/goal/bench-unix.py
==============================================================================
--- pypy/dist/pypy/translator/goal/bench-unix.py (original)
+++ pypy/dist/pypy/translator/goal/bench-unix.py Wed Nov 14 12:44:59 2007
@@ -153,6 +153,13 @@
exesize = os.path.getsize(os.path.join(dirname, 'main.exe'))
except OSError:
exesize = 'XXX'
+ elif 'pypy-jvm' in exename:
+ jarname = exename + '.jar'
+ codesize = 'N/A'
+ try:
+ exesize = os.path.getsize(jarname)
+ except OSError:
+ exesize = 'XXX'
else:
codesize = os.popen('size "%s" | tail -n1 | cut -f1'%(exename,)).read().strip()
exesize = os.path.getsize(exe)
More information about the pypy-svn
mailing list