New submission from Huon Wilson <wilson.h...@gmail.com>:

Per 
https://mail.python.org/archives/list/python-id...@python.org/thread/QDWI37A4TJXOYUKULGPY2GKD7IG2JNDC/
 , it would be helpful to have a function that resets the peak memory usage of 
the tracemalloc module, without changing all the traces.

This allows for recording the peak memory usage of a specific region of code, 
rather than only the peak since the last tracemalloc.start() or 
tracemalloc.clear_traces() call.

----------
components: Library (Lib)
messages: 368916
nosy: huonw, vstinner
priority: normal
severity: normal
status: open
title: tracemalloc: allow resetting peak memory metric without touching other 
traces
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40630>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to