API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
namespacePerf
@codexo/exojs / core / stable
User Timing helpers (`performance.mark`/`measure`), grouped as a namespace so the public API carries no loose `perf*` functions. All methods are safe no-ops where the User Timing API is unavailable.
4
props
0
methods
0
events
Import
import { Perf } from '@codexo/exojs'User Timing helpers (`performance.mark`/`measure`), grouped as a namespace so the public API carries no loose `perf*` functions. All methods are safe no-ops where the User Timing API is unavailable.
Properties4
clearMarks: (name?: string) => voidRemove all marks with the given name, or all marks when name is omitted. No-op when the User Timing API is unavailable.
clearMeasures: (name?: string) => voidRemove all measures with the given name, or all measures when name is omitted. No-op when the User Timing API is unavailable.
mark: (name: string) => voidEmit a named PerformanceMark at the current instant. No-op when the User Timing API is unavailable.
measure: (name: string, startMark: string, endMark?: string) => PerformanceMeasure | undefinedRecord a PerformanceMeasure between two marks. - When endMark is omitted the measurement runs from startMark to *now*. - Returns the created PerformanceMeasure, or undefined if the API is unavailable or either mark was never emitted.
Source