diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sys.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index c327f21..ee1f2b2 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -393,6 +393,20 @@ always available. .. versionadded:: 3.1 +.. function:: getallocatedblocks() + + Return the number of memory blocks currently allocated by the interpreter, + regardless of their size. This function is mainly useful for debugging + small memory leaks. Because of the interpreter's internal caches, the + result can vary from call to call; you may have to call + :func:`_clear_type_cache()` to get more predictable results. + + .. versionadded:: 3.4 + + .. impl-detail:: + Not all Python implementations may be able to return this information. + + .. function:: getcheckinterval() Return the interpreter's "check interval"; see :func:`setcheckinterval`. |