Files
pycom-documentation/firmwareapi/micropython/gc.md
2018-08-22 10:27:19 +00:00

25 lines
455 B
Markdown

# 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.