[pypy-commit] benchmarks default: check track_memory capability with own process, so we don't have to run it with root anymore

l.diekmann noreply at buildbot.pypy.org
Mon Jul 9 18:19:04 CEST 2012


Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: 
Changeset: r183:59184f41478d
Date: 2012-07-09 18:18 +0200
http://bitbucket.org/pypy/benchmarks/changeset/59184f41478d/

Log:	check track_memory capability with own process, so we don't have to
	run it with root anymore

diff --git a/unladen_swallow/perf.py b/unladen_swallow/perf.py
--- a/unladen_swallow/perf.py
+++ b/unladen_swallow/perf.py
@@ -281,7 +281,8 @@
             pass
 
     try:
-        _ReadSmapsFile(pid=1)
+        import os
+        _ReadSmapsFile(pid=os.getpid())
     except IOError:
         pass
     else:


More information about the pypy-commit mailing list