-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Profiler for Rax #2042
Comments
这个需要和 rax-devtools 联动,时间不确定 |
1)Rax App: 2)Rax Core:
目的:方便的获得各组件的渲染情况,对于渲染频率过高或渲染耗时过长的组件可针对性的用 useMemo 之类的手段进行优化。可参考 react Profile API |
关于 DSL、框架 和 devtools 的联动关系,近期规划是,可能不仅仅是 chrome 插件,而是一个面向多端的调试工具 |
在开发环境中收集数据 |
|
参考: https://zh-hans.reactjs.org/docs/profiler.html
我们需要知道raxView的页面. 整体渲染的代价, 每一个模块节点的渲染速度 . 这样才能不会因为某个节点的冗余导致整个页面首屏时间过长.
The text was updated successfully, but these errors were encountered: