当前位置 : 主页 > 网页制作 > React >

衡量React Native应用程序的性能

来源:互联网 收集:自由互联 发布时间:2021-06-15
我需要测量React Native应用程序的性能.什么是最好的工具? 我尝试谷歌浏览器中的谷歌跟踪,以及iOS平台的Mac中的仪器,但这些显示了很多无组织的数据. 我实现了一些帮助我检查应用程序
我需要测量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中的哪些操作介于常规操作流之间.

干杯:)

网友评论