mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 10:51:15 +08:00
tracemalloc: Add new functions from Python 3.9 (#4593)
Add tracemalloc.reset_peak()
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from tracemalloc import _FrameTupleT, _TraceTupleT
|
||||
from typing import Optional, Sequence, Tuple
|
||||
|
||||
@@ -8,5 +9,9 @@ def get_traceback_limit() -> int: ...
|
||||
def get_traced_memory() -> Tuple[int, int]: ...
|
||||
def get_tracemalloc_memory() -> int: ...
|
||||
def is_tracing() -> bool: ...
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
def reset_peak() -> None: ...
|
||||
|
||||
def start(__nframe: int = ...) -> None: ...
|
||||
def stop() -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user