Yuari
Documentation

gcinfo

Approximate memory in use by the external VM, in kilobytes.

Syntax

gcinfo() -> number

Parameters

This function takes no parameters.

Returns

TypeDescription
numberNumber (KB)

Description

gcinfo is part of the Core functions library. Core globals are installed in every executor thread and drive output, scheduling and identity.

The operation is performed immediately using the arguments supplied at the call site.

Example

print("memory KB:", gcinfo())

Notes

  • Core globals are available in every script.