Performance

@native @JSGlobal @JSType
class Performance extends Object

An object of this type can be obtained by calling the Window.performance read-only attribute.

An object of this type can be obtained by calling the Window.performance read-only attribute.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def clearMarks(markName: String): Unit

Removes all or specific PerformanceMark objects from the browser's performance timeline.

Removes all or specific PerformanceMark objects from the browser's performance timeline.

def clearMeasures(measureName: String): Unit

Removes all or specific PerformanceMeasure objects from the browser's performance timeline.

Removes all or specific PerformanceMeasure objects from the browser's performance timeline.

Removes all performance entries with an entryType of "resource" from the browser's performance timeline and sets the size of the performance resource data buffer to zero.

Removes all performance entries with an entryType of "resource" from the browser's performance timeline and sets the size of the performance resource data buffer to zero.

All PerformanceEntry objects currently present in the performance timeline.

All PerformanceEntry objects currently present in the performance timeline.

def getEntriesByName(name: String, `type`: String): Array[PerformanceEntry]

Returns an array of PerformanceEntry objects currently present in the performance timeline with the given name and type.

Returns an array of PerformanceEntry objects currently present in the performance timeline with the given name and type.

def getEntriesByType(entryType: String): Array[PerformanceEntry]

Returns an array of PerformanceEntry objects currently present in the performance timeline for a given type

Returns an array of PerformanceEntry objects currently present in the performance timeline for a given type

def mark(markName: String): PerformanceMark

Creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline.

Creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline.

def measure(measureName: String, startMarkName: String, endMarkName: String): PerformanceMeasure

Creates a named PerformanceMeasure object representing a time measurement between two marks in the browser's performance timeline.

Creates a named PerformanceMeasure object representing a time measurement between two marks in the browser's performance timeline.

def now(): Double

Returns a DOMHighResTimeStamp representing the amount of milliseconds elapsed since the start of the navigation, as give by PerformanceTiming.navigationStart to the call of the method.

Returns a DOMHighResTimeStamp representing the amount of milliseconds elapsed since the start of the navigation, as give by PerformanceTiming.navigationStart to the call of the method.

def setResourceTimingBufferSize(maxSize: Int): Unit

Sets the desired size of the browser's resource timing buffer which stores the "resource" performance entries.

Sets the desired size of the browser's resource timing buffer which stores the "resource" performance entries.

The Performance.timing read-only property returns a PerformanceTiming object containing latency-related performance information.

The Performance.timing read-only property returns a PerformanceTiming object containing latency-related performance information.

def toJSON(): Object

Returns a JSON representation of the Performance object.

Returns a JSON representation of the Performance object.

Deprecated methods

@deprecated("No such API in the spec", "2.8.0")
def getMarks(markName: String): Dynamic
Deprecated
@deprecated("No such API in the spec", "2.8.0")
def getMeasures(measureName: String): Dynamic
Deprecated

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object