import { type Performance } from "https://deno.land/x/levo@v0.0.27/lib/lib.deno_runtime.d.ts";
Deno supports user timing Level 3 (see: https://w3c.github.io/user-timing)
which is not widely supported yet in other runtimes. These types are here
so that these features are still available when using the Deno namespace
in conjunction with other type libs, like dom
.
Methods
mark(markName: string, options?: PerformanceMarkOptions): PerformanceMark
Stores a timestamp with the associated name (a "mark").
measure(measureName: string, options?: PerformanceMeasureOptions): PerformanceMeasure
Stores the DOMHighResTimeStamp
duration between two marks along with the
associated name (a "measure").
getEntries(): PerformanceEntryList
getEntriesByName(name: string, type?: string): PerformanceEntryList
getEntriesByType(type: string): PerformanceEntryList
mark(markName: string, options?: PerformanceMarkOptions): PerformanceMark
Stores a timestamp with the associated name (a "mark").
measure(measureName: string, options?: PerformanceMeasureOptions): PerformanceMeasure
Stores the DOMHighResTimeStamp
duration between two marks along with the
associated name (a "measure").
measure(): PerformanceMeasure
measureName: string,
startMark?: string,
endMark?: string,
Stores the DOMHighResTimeStamp
duration between two marks along with the
associated name (a "measure").
import { Performance } from "https://deno.land/x/levo@v0.0.27/lib/lib.deno_runtime.d.ts";
type
{ prototype: Performance; new (): Performance; }