On this page

    M

    v8.setHeapSnapshotNearHeapLimit

    History
    v8.setHeapSnapshotNearHeapLimit(limit): void
    Attributes
    limit:integer

    The API is a no-op if --heapsnapshot-near-heap-limit is already set from the command line or the API is called more than once. limit must be a positive integer. See --heapsnapshot-near-heap-limit for more information.