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

EventTarget

EventTarget: { constructor: any; prototype: EventTarget }

Type declaration

Readonly navigation

deprecated

onresourcetimingbufferfull

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

Readonly timeOrigin

timeOrigin: number

Readonly timing

deprecated

Methods

addEventListener

clearMarks

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

    • Optional markName: string

    Returns void

clearMeasures

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

    • Optional measureName: string

    Returns void

clearResourceTimings

  • clearResourceTimings(): void
  • Returns void

dispatchEvent

  • 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

getEntries

getEntriesByName

  • Parameters

    • name: string
    • Optional type: string

    Returns PerformanceEntryList

getEntriesByType

  • Parameters

    • type: string

    Returns PerformanceEntryList

mark

  • mark(markName: string): void
  • Parameters

    • markName: string

    Returns void

measure

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

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

    Returns void

now

  • now(): number
  • Returns number

removeEventListener

setResourceTimingBufferSize

  • setResourceTimingBufferSize(maxSize: number): void
  • Parameters

    • maxSize: number

    Returns void

toJSON

  • toJSON(): any
  • Returns any

Generated using TypeDoc