Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Performance

Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API.

interface Performance extends EventTarget {
readonly eventCounts: EventCounts;
readonly navigation: PerformanceNavigation;
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
readonly timeOrigin: DOMHighResTimeStamp;
readonly timing: PerformanceTiming;
addEventListener<K extends keyof PerformanceEventMap>(
type: K,
listener: (this: Performance, ev: PerformanceEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
clearMarks(markName?: string): void;
clearMeasures(measureName?: string): void;
clearResourceTimings(): void;
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
measure(
measureName: string,
startOrMeasureOptions?: string | PerformanceMeasureOptions,
endMark?: string,
): PerformanceMeasure;
removeEventListener<K extends keyof PerformanceEventMap>(
type: K,
listener: (this: Performance, ev: PerformanceEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
setResourceTimingBufferSize(maxSize: number): void;
toJSON(): any;
}
var Performance: {
prototype: Performance;
new (): Performance;
}
;

§Extends

§Properties

§
readonly eventCounts: EventCounts
[src]
§
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null
[src]
§
readonly timeOrigin: DOMHighResTimeStamp
[src]
§
readonly timing: PerformanceTiming
[src]

§Methods

§
addEventListener<K extends keyof PerformanceEventMap>(
type: K,
listener: (this: Performance, ev: PerformanceEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
clearMarks(markName?: string): void
[src]
§
clearMeasures(measureName?: string): void
[src]
§
clearResourceTimings(): void
[src]
§
getEntriesByName(name: string, type?: string): PerformanceEntryList
[src]
§
getEntriesByType(type: string): PerformanceEntryList
[src]
§
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark
[src]
§
measure(
measureName: string,
startOrMeasureOptions?: string | PerformanceMeasureOptions,
endMark?: string,
): PerformanceMeasure
[src]
§
removeEventListener<K extends keyof PerformanceEventMap>(
type: K,
listener: (this: Performance, ev: PerformanceEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]
§
setResourceTimingBufferSize(maxSize: number): void
[src]
§
toJSON(): any
[src]