Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/content/reference/react/Profiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ function onRender(id, phase, actualDuration, baseDuration, startTime, commitTime

`<Profiler>` 允许你编程式收集性能测量数据。如果你正在寻找一个交互式的性能分析工具,可以尝试使用 [React 开发者工具](/learn/react-developer-tools) 中的 Profiler 标签页。它提供了类似浏览器扩展程序的功能。

Components wrapped in `<Profiler>` will also be marked in the [Component tracks](/reference/dev-tools/react-performance-tracks#components) of React Performance tracks even in profiling builds.
In development builds, all components are marked in the Components track regardless of whether they're wrapped in `<Profiler>`.
即使在剖析构建中,也会在 React Performance 跟踪的 [Component tracks](/reference/dev-tools/react-performance-tracks#components) 中标记 `<Profiler>` 封装的组件。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用分析会不会好一点?

在开发构建中,所有组件都会标记在组件跟踪中,而不管它们是否用 `<Profiler>` 封装。

</Note>

Expand Down