Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added an async caveat about actual time
  • Loading branch information
Brian Vaughn committed May 22, 2018
commit 1475772c1db1b04e4d0df2bd931cf8db2d18c63a
4 changes: 3 additions & 1 deletion text/0000-profiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ The `id` value of the `Profiler` tag that was measured. This value can change be
Either the string "mount" or "update" (depending on whether this root was newly mounted or has just been updated).

#### `actualTime: number`
Time spent rendering the `Profiler` and its descendants for the current (most recent recent) update. This time tells us how well the subtree makes use of `shouldComponentUpdate` for memoization. Ideally, this time should decrease significantly after the initial mount.
Time spent rendering the `Profiler` and its descendants for the current (most recent recent) update. This time tells us how well the subtree makes use of `shouldComponentUpdate` for memoization.

Ideally, this time should decrease significantly after the initial mount. Althoguh in async mode, under certain conditions, React might render the same component more than once as part of a single commit. (In this event, the "actual" time for an update might be larger than the initial time.)

#### `baseTime: number`
Duration of the most recent `render` time for each individual component within the `Profiler` tree. This reflects a worst-case cost of rendering (e.g. the initial mount or no `shouldComponentUpdate` memoization).
Expand Down