加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

衡量React Native应用程序的性能

发布时间:2020-12-15 16:18:26 所属栏目:百科 来源:网络整理
导读:我需要测量React Native应用程序的性能.什么是最好的工具? 我尝试谷歌浏览器中的谷歌跟踪,以及iOS平台的Mac中的仪器,但这些显示了很多无组织的数据. 解决方法 我实现了一些帮助我检查应用程序性能的工具,下面是工具列表: 1)(reactotron)https://github.com
我需要测量React Native应用程序的性能.什么是最好的工具?

我尝试谷歌浏览器中的谷歌跟踪,以及iOS平台的Mac中的仪器,但这些显示了很多无组织的数据.

解决方法

我实现了一些帮助我检查应用程序性能的工具,下面是工具列表:

1)(reactotron)https://github.com/infinitered/reactotron

这是获取应用程序日志的最酷方式(redux操作等),我已将此工具集成到我的项目中,以防您需要任何帮助,请随时提出.

2)https://facebook.github.io/react/docs/perf.html(react-addons-perf)

这个工具告诉你关于帧/ s,实例等的信息.这是一个反应工具,它可以与react本机集成.

Use the built-in Profiler to get detailed information about work done
in the JavaScript thread and main thread side-by-side.

For iOS,Instruments are an invaluable tool,and on Android you should
learn to use systrace.

You can also use react-addons-perf to get insights into where React is
spending time when rendering your components.

Another way to profile JavaScript is to use the Chrome profiler while
debugging. This won’t give you accurate results as the code is running
in Chrome but will give you a general idea of where bottlenecks might
be.

注意:以上工具用于监视javascript性能,例如渲染组件所花费的时间,redux中的哪些操作介于常规操作流之间.

干杯:)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读