react-native profiling doesn't show JS thread

主宰稳场 提交于 2019-12-10 10:05:10

问题


I followed the official guide to profile my JS: https://facebook.github.io/react-native/docs/android-ui-performance.html

But when I get the results, there's no js-related code I can look at:

Any idea what happened ? The interface is pretty sluggish, cusuming 100% of a CPU, but I get no infos why.

EDIT: looks like using the latest react-native version could solve that, I'm using 0.30.0 and looks like some related changes were introduced around 0.34.0


回答1:


You can simply use the chrome profiler over debuggerWorker.js while debugging:

Profiling while debugging won't give you the most accurate results so be careful.



来源:https://stackoverflow.com/questions/40607563/react-native-profiling-doesnt-show-js-thread

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!