[Python-checkins] benchmarks: Use PeakPagefileUsage for memory usage tracking under Windows, for better
antoine.pitrou
python-checkins at python.org
Mon Jul 9 22:42:07 CEST 2012
http://hg.python.org/benchmarks/rev/5f6b46d86b40
changeset: 157:5f6b46d86b40
user: Antoine Pitrou <solipsis at pitrou.net>
date: Mon Jul 09 22:40:39 2012 +0200
summary:
Use PeakPagefileUsage for memory usage tracking under Windows, for better accuracy.
files:
perf.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/perf.py b/perf.py
--- a/perf.py
+++ b/perf.py
@@ -246,10 +246,10 @@
process_handle: handle to the process to get the memory usage for
Returns:
- The size of the process's private data, in kilobytes
+ The peak size of the process's private data, in kilobytes
"""
pmi = win32process.GetProcessMemoryInfo(process_handle)
- return pmi["PagefileUsage"] // 1024
+ return pmi["PeakPagefileUsage"] // 1024
@contextlib.contextmanager
--
Repository URL: http://hg.python.org/benchmarks
More information about the Python-checkins
mailing list