31 lines
514 B
ReStructuredText
31 lines
514 B
ReStructuredText
|
:mod:`gc` --- control the garbage collector
|
||
|
===========================================
|
||
|
|
||
|
.. module:: gc
|
||
|
:synopsis: control the garbage collector
|
||
|
|
||
|
|
||
|
|
||
|
Functions
|
||
|
---------
|
||
|
|
||
|
.. function:: collect()
|
||
|
|
||
|
Run a garbage collection.
|
||
|
|
||
|
.. function:: disable()
|
||
|
|
||
|
Disable the garbage collector.
|
||
|
|
||
|
.. function:: enable()
|
||
|
|
||
|
Enable the garbage collector.
|
||
|
|
||
|
.. function:: mem_alloc()
|
||
|
|
||
|
Return the number of bytes of heap RAM that are allocated.
|
||
|
|
||
|
.. function:: mem_free()
|
||
|
|
||
|
Return the number of bytes of available heap RAM.
|