aboutsummaryrefslogtreecommitdiff
path: root/docs/library/gc.rst
blob: 212fac1db83c914a280eff481c1317f21847414b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
: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.