pub unsafe extern "C" fn StartIncrementalGC(
    cx: *mut JSContext,
    options: GCOptions,
    reason: GCReason,
    budget: *const SliceBudget
)
Expand description

Begin an incremental collection and perform one slice worth of work. When this function returns, the collection may not be complete. IncrementalGCSlice() must be called repeatedly until !IsIncrementalGCInProgress(cx).

Note: SpiderMonkey’s GC is not realtime. Slices in practice may be longer or shorter than the requested interval.