Performance

sealed external class Performance : EventTarget(source)

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.

MDN Reference

Functions

Link copied to clipboard
fun clearMarks(markName: String = definedExternally)
Link copied to clipboard
fun clearMeasures(measureName: String = definedExternally)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getEntriesByName(name: String, type: String = definedExternally): PerformanceEntryList
Link copied to clipboard
fun mark(markName: String, markOptions: PerformanceMarkOptions = definedExternally): PerformanceMark
Link copied to clipboard
fun measure(measureName: String, startOrMeasureOptions: String = definedExternally, endMark: String = definedExternally): PerformanceMeasure
fun measure(measureName: String, startOrMeasureOptions: PerformanceMeasureOptions, endMark: String = definedExternally): PerformanceMeasure
Link copied to clipboard
Link copied to clipboard