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

Index

Properties

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • Returns EventTarget

  • prototype: EventTarget

navigation

deprecated

onresourcetimingbufferfull

onresourcetimingbufferfull: function | null

timeOrigin

timeOrigin: number

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

  • Returns PerformanceEntryList

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