反应本机性能监视器 [英] react-native performance monitor

查看:59
本文介绍了反应本机性能监视器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这感觉像是一个愚蠢的问题,但是在 react-native 性能监视器上,各种数字意味着什么?我在

我了解内存.其他人是什么?两个单独的数字对视图意味着什么?是每秒帧数吗?我应该阅读什么才能胜任如何使用此工具?这个工具有多可靠?我应该瞄准哪些基准?

解决方案

感谢 @diedu 发布链接(指向一个帖子,该帖子有评论 w/这个 YouTube 视频):

以下是每个事物所代表的基本列表.

  • RAM:内存
  • JSC:Javascript 堆/内存.只会在垃圾收集发生时更新.
  • 观看次数:两个数字.顶部数字是屏幕上的视图数,底部是组件中的总视图数.底部数字通常较大,但通常表示您有一些可以改进/重构的内容.
  • UI:每秒主要帧数
  • JS(Q 中未显示):每秒 javascript 帧数.不渲染 js,但仍然可以监控.

希望这对某人有所帮助.

This feels like a silly question, but what do the various numbers mean on react-native performance monitor? I haven't been able to find in the docs.

I understand RAM. What are the others? What do the two separate numbers mean for Views? Is that frames per second? What should I read to in order to become competent on how to use this tool? How reliable is this tool? What benchmarks should I be aiming for?

解决方案

Thanks @diedu for posting a link (to a post, which has a comment w/ this youtube vid):

Here's a basic list of what each of those things represents.

  • RAM: memory
  • JSC: Javascript heap / memory. Will only be updated as garbage collection occurs.
  • Views: Two numbers. Top number is the number of views on the screen and bottom is the total number of views in the component. Bottom number typically larger but usually indicates you have something that could be improved / refactored.
  • UI: main frames per second
  • JS (not pictured in Q): javascript frames per second. not rendering js but still good to monitor.

Hope this helps someone.

这篇关于反应本机性能监视器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆