final case class OnRenderData(id: String, phase: String, actualDurationMs: Double, baseDurationMs: Double, startTime: Double, commitTime: Double, rawInteractions: Iterable[raw.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.
- Alphabetic
- By Inheritance
- OnRenderData
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
OnRenderData(id: String, phase: String, actualDurationMs: Double, baseDurationMs: Double, startTime: Double, commitTime: Double, rawInteractions: Iterable[raw.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( ... ) @native() @HotSpotIntrinsicCandidate()
- val commitTime: Double
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val id: String
-
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).
-
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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val phase: String
- def phaseIsMount: Boolean
- def phaseIsUpdate: Boolean
- val rawInteractions: Iterable[raw.Interaction]
- val startTime: Double
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.