Manually force a report of the current peak (no-op if none). Respects reportToDatadog and action naming in options.
reportToDatadog
import { reportMemoryPeak } from "datadog-ux-utils/memoryPeak";await someBigOperation();reportMemoryPeak(); // log the current max after the operation Copy
import { reportMemoryPeak } from "datadog-ux-utils/memoryPeak";await someBigOperation();reportMemoryPeak(); // log the current max after the operation
Manually force a report of the current peak (no-op if none). Respects
reportToDatadog
and action naming in options.