Garbage Collector¶
This module allows the interaction with the garbage collector from Zerynth programs.
-
info
()¶ Returns a tuple of integers:
- Total memory in bytes
- Free memory in bytes
- Memory fragmentation percentage
- Number of allocated blocks
- Number of free blocks
- GC Period: milliseconds between forced collections
- Milliseconds since last collection
-
collect
()¶ Starts a collection
-
enable
(period=500)¶ Activates the garbage collector with a GC Period of period milliseconds
-
disable
()¶ Disable garbage collector