Performance.mark - Node documentation
method Performance.mark

Usage in Deno

import { type Performance } from "node:perf_hooks";
Performance.mark(
name?: string,
options?: MarkOptions,
): PerformanceMark

Creates a new PerformanceMark entry in the Performance Timeline. A PerformanceMark is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'mark', and whose performanceEntry.duration is always 0. Performance marks are used to mark specific significant moments in the Performance Timeline.

Parameters

optional
name: string
optional
options: MarkOptions

Return Type

The PerformanceMark entry that was created