Re: [Speed] Tracking memory usage
29 Jul
2016
29 Jul
'16
4:58 p.m.
I modified my perf module to add two new options: --tracemalloc and --track-memory.
--tracemalloc enables tracemalloc and gets the peak of the traced Python memory allocations: peak is computed per process.
--track-memory is similar but reads PeakPagefileUsage of GetProcessMemoryInfo() on Windows or private data from /proc/self/smap on Linux. The read is done every millisecond (1 ms) in a thread, in the worker process.
It's not perfect, but it should be "as good" as the "old" CPython benchmark suite. And it makes the benchmark suite simpler because tracking memory usage is now done automatically by the perf module.
Victor
3076
Age (days ago)
3076
Last active (days ago)
0 comments
1 participants
participants (1)
-
Victor Stinner