iya-sts
    Preparing search index...

    Runs a full garbage collection of the calling V8 isolate and reports its heap before and after: the on-demand control of Monitoring → Node Health.

    A static utility class; its one piece of state is the cached gc.

    Index
    • Runs one full garbage collection of this isolate, synchronously.

      Never throws: a gc that cannot be obtained, or that throws, is an answer with ok: false and the reason, and the figures it could not read null.

      Parameters

      • log: CollectorLog

        the logger

      Returns Collection

      the heap before and after, the bytes freed and the pause

    • Answers V8's gc for this isolate, obtaining it the first time without a startup flag: --expose-gc set while one context is made, then cleared. A process started with the flag has it already.

      Parameters

      • log: CollectorLog

        the logger

      Returns () => void

      the function

      Error when V8 hands back no function