We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
assignee = None
closed_at = <Date 2020-05-22.14:20:06.099>
created_at = <Date 2020-05-15.02:12:35.989>
labels = ['type-feature', 'library', '3.9']
title = 'tracemalloc: allow resetting peak memory metric without touching other traces'
updated_at = <Date 2020-06-01.17:27:29.441>
user = 'https://github.com/huonw'
activity = <Date 2020-06-01.17:27:29.441>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2020-05-22.14:20:06.099>
closer = 'vstinner'
components = ['Library (Lib)']
creation = <Date 2020-05-15.02:12:35.989>
creator = 'huonw'
dependencies = 
files = 
hgrepos = 
issue_num = 40630
keywords = ['patch']
message_count = 6.0
messages = ['368916', '369604', '369605', '370566', '370567', '370568']
nosy_count = 2.0
nosy_names = ['vstinner', 'huonw']
pr_nums = ['20102', '20545', '20546']
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue40630'
versions = ['Python 3.9']
The text was updated successfully, but these errors were encountered:
Per https://email@example.com/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.
Sorry, something went wrong.
New changeset 8b62644 by Huon Wilson in branch 'master':
bpo-40630: Add tracemalloc.reset_peak (GH-20102)
Thanks Huon Wilson!
New changeset 3c7609a by Huon Wilson in branch '3.9':
[3.9] bpo-40630: Add tracemalloc.reset_peak (GH-20102) (GH-20545)
New changeset 39de8e4 by Huon Wilson in branch 'master':
bpo-40630: adjust tracemalloc.reset_peak docs for backport to 3.9 (GH-20546)
Feature added to Python 3.9. Lukasz allowed to add the feature to Python 3.9 beta2:
No branches or pull requests