Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface 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.

Hierarchy

Index

Properties

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

Methods

  • 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

    Returns boolean

  • Parameters

    • name: string
    • Optional type: string

    Returns PerformanceEntryList

  • Parameters

    • type: string

    Returns PerformanceEntryList

  • mark(markName: string): void
  • Parameters

    • markName: string

    Returns void

  • measure(measureName: string, startMark?: string, endMark?: string): void
  • Parameters

    • measureName: string
    • Optional startMark: string
    • Optional endMark: string

    Returns void

  • now(): number
  • Returns number

  • setResourceTimingBufferSize(maxSize: number): void
  • Parameters

    • maxSize: number

    Returns void

  • toJSON(): any
  • Returns any

Generated using TypeDoc