Author: Lukas Diekmann <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit