Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • EventTarget
    • Performance

Index

Properties

eventCounts: internal.EventCounts
deprecated
onresourcetimingbufferfull: null | ((this: internal.Performance, ev: Event) => any)
timeOrigin: number
deprecated

Methods

  • addEventListener<K>(type: K, listener: ((this: internal.Performance, ev: PerformanceEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void
  • addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • Type Parameters

    • K extends "resourcetimingbufferfull"

    Parameters

    Returns void

  • Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • clearMarks(markName?: string): void
  • Parameters

    • Optional markName: string

    Returns void

  • clearMeasures(measureName?: string): void
  • Parameters

    • Optional measureName: string

    Returns void

  • clearResourceTimings(): void
  • Returns void

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • Parameters

    • name: string
    • Optional type: string

    Returns PerformanceEntryList

  • Parameters

    • type: string

    Returns PerformanceEntryList

  • now(): number
  • Returns number

  • removeEventListener<K>(type: K, listener: ((this: internal.Performance, ev: PerformanceEventMap[K]) => any), options?: boolean | EventListenerOptions): void
  • removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void
  • Type Parameters

    • K extends "resourcetimingbufferfull"

    Parameters

    Returns void

  • Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | EventListenerOptions

    Returns void

  • setResourceTimingBufferSize(maxSize: number): void
  • Parameters

    • maxSize: number

    Returns void

  • toJSON(): any
  • Returns any

Generated using TypeDoc