Garbage Collector¶
This module allows the interaction with the garbage collector from Zerynth programs.
info¶
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¶
collect()
Starts a collection
enable¶
enable(period=500)
Activates the garbage collector with a GC Period of period
milliseconds
disable¶
disable()
Disable garbage collector