Readonly
eventThe read-only performance.eventCounts
property is an EventCounts map containing the number of events which have been dispatched per event type.
Readonly
navigationThe legacy Performance.navigation
read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, such as the number of redirections needed to fetch the resource.
Readonly
timeThe timeOrigin
read-only property of the Performance interface returns the high resolution timestamp that is used as the baseline for performance-related timestamps.
Readonly
timingThe legacy Performance.timing
read-only property returns a PerformanceTiming object containing latency-related performance information.
The addEventListener()
method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optional
options: boolean | AddEventListenerOptionsThe addEventListener()
method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optional
options: boolean | AddEventListenerOptionsThe clearMarks()
method removes all or specific PerformanceMark objects from the browser's performance timeline.
Optional
markName: stringThe clearMeasures()
method removes all or specific PerformanceMeasure objects from the browser's performance timeline.
Optional
measureName: stringThe clearResourceTimings()
method removes all performance entries with an PerformanceEntry.entryType of 'resource'
from the browser's performance timeline and sets the size of the performance resource data buffer to zero.
The dispatchEvent()
method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The getEntries()
method returns an array of all PerformanceEntry objects currently present in the performance timeline.
The getEntriesByName()
method returns an array of PerformanceEntry objects currently present in the performance timeline with the given name and type.
Optional
type: stringThe getEntriesByType()
method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type.
The mark()
method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline.
Optional
markOptions: PerformanceMarkOptionsThe measure()
method creates a named PerformanceMeasure object representing a time measurement between two marks in the browser's performance timeline.
Optional
startOrMeasureOptions: string | PerformanceMeasureOptionsOptional
endMark: stringThe performance.now()
method returns a high resolution timestamp in milliseconds.
The removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optional
options: boolean | EventListenerOptionsThe removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optional
options: boolean | EventListenerOptionsThe setResourceTimingBufferSize()
method sets the desired size of the browser's resource timing buffer which stores the 'resource'
performance entries.
The toJSON()
method of the Performance interface is a Serialization; it returns a JSON representation of the Performance object.
The
Performance
interface provides access to performance-related information for the current page.MDN Reference