The public interface of the Mono GC is fairly limited, and its the only one that embedders should be using:
Parameters
Remarksgeneration: GC generation identifier
Perform a garbage collection for the given generation, higher numbers mean usually older objects. Collecting a high-numbered generation implies collecting also the lower-numbered generations. The maximum value for generation can be retrieved with a call to mono_gc_max_generation(), so this function is usually called as: mono_gc_collect (mono_gc_max_generation ());
Returns
the maximum generation number.Remarks
Get the maximum generation number used by the current garbage collector. The value will be 0 for the Boehm collector, 1 or more for the generational collectors.
Returns
the size of the heap in bytesRemarks
Get the amount of memory used by the garbage collector.