Skip to main content

Garbage Collector

Garbage Collector

This module allows the interaction with the garbage collector from Zerynth programs.

function info()

info()

Returns a tuple of integers:

  1. Total memory in bytes
  2. Free memory in bytes
  3. Memory fragmentation percentage
  4. Number of allocated blocks
  5. Number of free blocks
  6. GC Period: milliseconds between forced collections
  7. Milliseconds since last collection
  8. OS free memory in bytes