[Python-checkins] benchmarks: Fix detecting whether memory measurements are supported on Ubuntu 13.04

antoine.pitrou python-checkins at python.org
Wed Apr 17 21:35:56 CEST 2013


http://hg.python.org/benchmarks/rev/a00bb43c650a
changeset: 198:a00bb43c650a
user: Antoine Pitrou <solipsis at pitrou.net>
date: Wed Apr 17 20:45:37 2013 +0200
summary:
 Fix detecting whether memory measurements are supported on Ubuntu 13.04
files:
 perf.py | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/perf.py b/perf.py
--- a/perf.py
+++ b/perf.py
@@ -290,7 +290,7 @@
 pass
 
 try:
- _ReadSmapsFile(pid=1)
+ _ReadSmapsFile(pid=os.getpid())
 except IOError:
 pass
 else:
-- 
Repository URL: http://hg.python.org/benchmarks


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /