Name
GCInfo -- query garbage collector status (V2.0)
Synopsis
count, threshold = GCInfo()
Function
This function returns information about the current status of the garbage collector. The first return value tells you how many kilobytes of memory is currently occupied by Hollywood's VM whereas the second return value indicates the threshold in kilobytes that should trigger the garbage collector. Whenever memory consumption exceeds the specified threshold, Hollywood will automatically run the garbage collector.

You can also run the garbage collector manually or change the garbage collector threshold by calling the CollectGarbage() function.

Inputs
none

Results
count
amount of memory in kilobytes currently used by the Hollywood VM
threshold
current garbage collector threshold

Show TOC