final case class OnRenderData(id: String, phase: String, actualDurationMs: Double, baseDurationMs: Double, startTime: Double, commitTime: Double, rawInteractions: Iterable[facade.Interaction]) extends Product with Serializable
Data returned by the Profiler.
- id
The id prop of the Profiler tree that has just committed. This can be used to identify which part of the tree was committed if you are using multiple profilers.
- phase
Identifies whether the tree has just been mounted for the first time or re-rendered due to a change in props, state, or hooks.
- actualDurationMs
Time spent rendering the Profiler and its descendants for the current update. This indicates how well the subtree makes use of memoization (e.g. React.memo, useMemo, shouldComponentUpdate). Ideally this value should decrease significantly after the initial mount as many of the descendants will only need to re-render if their specific props change.
- baseDurationMs
Duration of the most recent render time for each individual component within the Profiler tree. This value estimates a worst-case cost of rendering (e.g. the initial mount or a tree with no memoization).
- startTime
Timestamp when React began rendering the current update.
- commitTime
Timestamp when React committed the current update. This value is shared between all profilers in a commit, enabling them to be grouped if desirable.
- Annotations
- @nowarn()
- Alphabetic
- By Inheritance
- OnRenderData
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new OnRenderData(id: String, phase: String, actualDurationMs: Double, baseDurationMs: Double, startTime: Double, commitTime: Double, rawInteractions: Iterable[facade.Interaction])
- id
The id prop of the Profiler tree that has just committed. This can be used to identify which part of the tree was committed if you are using multiple profilers.
- phase
Identifies whether the tree has just been mounted for the first time or re-rendered due to a change in props, state, or hooks.
- actualDurationMs
Time spent rendering the Profiler and its descendants for the current update. This indicates how well the subtree makes use of memoization (e.g. React.memo, useMemo, shouldComponentUpdate). Ideally this value should decrease significantly after the initial mount as many of the descendants will only need to re-render if their specific props change.
- baseDurationMs
Duration of the most recent render time for each individual component within the Profiler tree. This value estimates a worst-case cost of rendering (e.g. the initial mount or a tree with no memoization).
- startTime
Timestamp when React began rendering the current update.
- commitTime
Timestamp when React committed the current update. This value is shared between all profilers in a commit, enabling them to be grouped if desirable.
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
- lazy val actualDuration: Duration
Time spent rendering the Profiler and its descendants for the current update.
Time spent rendering the Profiler and its descendants for the current update. This indicates how well the subtree makes use of memoization (e.g. React.memo, useMemo, shouldComponentUpdate). Ideally this value should decrease significantly after the initial mount as many of the descendants will only need to re-render if their specific props change.
- val actualDurationMs: Double
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val baseDuration: Duration
Duration of the most recent render time for each individual component within the Profiler tree.
Duration of the most recent render time for each individual component within the Profiler tree. This value estimates a worst-case cost of rendering (e.g. the initial mount or a tree with no memoization).
- val baseDurationMs: Double
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val commitTime: Double
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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()
- val id: String
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- val phase: String
- def phaseIsMount: Boolean
- def phaseIsUpdate: Boolean
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val startTime: Double
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()
Deprecated Value Members
- lazy val interactions: Vector[Interaction]
Set of "interactions" that were being traced when the update was scheduled (e.g.
Set of "interactions" that were being traced when the update was scheduled (e.g. when render or setState were called).
- Annotations
- @deprecated
- Deprecated
(Since version 2.2.0) Removed in React 18
- val rawInteractions: Iterable[facade.Interaction]
- Annotations
- @deprecated
- Deprecated
(Since version 2.2.0) Removed in React 18