Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

DoesZapCodeSpaceFlag

DoesZapCodeSpaceFlag: 0 | 1

Functions

getHeapSnapshot

  • Generates a snapshot of the current V8 heap and returns a Readable Stream that may be used to read the JSON serialized representation. This conversation was marked as resolved by joyeecheung This JSON stream format is intended to be used with tools such as Chrome DevTools. The JSON schema is undocumented and specific to the V8 engine, and may change from one version of V8 to the next.

    Returns Readable

getHeapSpaceStatistics

  • Returns HeapSpaceInfo[]

getHeapStatistics

  • Returns HeapInfo

setFlagsFromString

  • setFlagsFromString(flags: string): void
  • Parameters

    • flags: string

    Returns void

writeHeapSnapshot

  • writeHeapSnapshot(fileName?: undefined | string): string
  • Parameters

    • Optional fileName: undefined | string

      The file path where the V8 heap snapshot is to be saved. If not specified, a file name with the pattern 'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot' will be generated, where {pid} will be the PID of the Node.js process, {thread_id} will be 0 when writeHeapSnapshot() is called from the main Node.js thread or the id of a worker thread.

    Returns string

Generated using TypeDoc