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.
- Annotations
- @JSType() @native() @JSGlobal()
- Alphabetic
- By Inheritance
- Performance
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearMarks(markName: String = js.native): Unit
Removes all or specific PerformanceMark objects from the browser's performance timeline.
- def clearMeasures(measureName: String = js.native): Unit
Removes all or specific PerformanceMeasure objects from the browser's performance timeline.
- def clearResourceTimings(): Unit
Removes all performance entries with an
entryTypeof "resource" from the browser's performance timeline and sets the size of the performance resource data buffer to zero. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getEntries(): Array[PerformanceEntry]
All PerformanceEntry objects currently present in the performance timeline.
- def getEntriesByName(name: String, type: String = js.native): Array[PerformanceEntry]
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
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def mark(markName: String): PerformanceMark
Creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline.
- def measure(measureName: String, startMarkName: String = js.native, endMarkName: String = js.native): PerformanceMeasure
Creates a named PerformanceMeasure object representing a time measurement between two marks in the browser's performance timeline.
- 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.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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.
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- def setResourceTimingBufferSize(maxSize: Int): Unit
Sets the desired size of the browser's resource timing buffer which stores the "resource" performance entries.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def timing: PerformanceTiming
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.
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()