Files
pycom-documentation/content/firmwareapi/micropython/gc.md
Emmanuel Florent 48e3a22c9e initial commit
2019-06-17 14:24:53 +02:00

583 B

title, aliases
title aliases
gc
firmwareapi/micropython/gc.html
firmwareapi/micropython/gc.md
chapter/firmwareapi/micropython/gc

Methods

gc.enable()

Enable automatic garbage collection.

gc.disable()

Disable automatic garbage collection. Heap memory can still be allocated, and garbage collection can still be initiated manually using gc.collect().

gc.collect()

Run a garbage collection.

gc.mem_alloc()

Return the number of bytes of heap RAM that are allocated.

gc.mem_free()

Return the number of bytes of available heap RAM.