(no title)
kgm | 2 years ago
This means that you can turn the standard profiler into a memory profiler by providing a timing function which reports either total memory allocation or a meaningful proxy for allocation. I've had good results in the past using a timing function which returns the number of minor page faults (via resource.getrusage).
[1] https://docs.python.org/3/library/profile.html#profile.Profi...
No comments yet.