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.
MDN
- Annotations
- @JSType() @native() @JSGlobal()
- Alphabetic
- By Inheritance
- Performance
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Performance()
Value Members
- def clearMarks(markName: String = js.native): Unit
- def clearMeasures(measureName: String = js.native): Unit
- def clearResourceTimings(): Unit
- def getEntries(): Dynamic
- def getEntriesByName(name: String, entryType: String = js.native): Dynamic
- def getEntriesByType(entryType: String): Dynamic
- def getMarks(markName: String = js.native): Dynamic
- def getMeasures(measureName: String = js.native): Dynamic
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def mark(markName: String): Unit
- def measure(measureName: String, startMarkName: String = js.native, endMarkName: String = js.native): Unit
-
def
navigation: PerformanceNavigation
The Performance.navigation read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, like the amount of redirections needed to fetch the resource.
The Performance.navigation read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, like the amount of redirections needed to fetch the resource.
MDN
-
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.
MDN
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- def setResourceTimingBufferSize(maxSize: Int): Unit
-
def
timing: PerformanceTiming
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.
MDN
-
def
toJSON(): Dynamic
Is a jsonizer returning a json object representing the Performance object.
Is a jsonizer returning a json object representing the Performance object.
MDN
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
valueOf(): Any
- Definition Classes
- Object