Skip to main content
setHeapSnapshotNearHeapLimit - node__v8.d.ts - Node documentation
function setHeapSnapshotNearHeapLimit
Unstable

Usage in Deno

```typescript import { setHeapSnapshotNearHeapLimit } from "node:node__v8.d.ts"; ```
setHeapSnapshotNearHeapLimit(limit: number): void
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`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information.

Parameters

limit: number

Return Type

void