我如何调试本机Expo项目中的内存泄漏? [英] How can I debug memory leaks in react-native Expo project?

查看:57
本文介绍了我如何调试本机Expo项目中的内存泄漏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用XCode的ios模拟器和使用genymotion的android模拟器上运行一个React-native Expo项目. 在真实的android手机上使用该应用程序时,有时会发生崩溃. 我希望找出在模拟器上调试它的原因.

I am running a react-native Expo project on both ios simulator, which uses XCode, and android emulator, which uses genymotion. There is a crash sometimes when using the app on real android phone. I am hoping to find out the reason debugging it on the emulator.

到目前为止,我一直在搜索相关工具,但没有遇到任何问题.

So far, I searched for tools for this, but did not encounter any.

有人可以告诉我可用的工具来调试genymotion模拟器上的内存泄漏吗? 我也欢迎任何其他建议来解决我的问题.

Could anyone tell me available tools for debugging memory leaks on genymotion emulator? I also welcome any other advices to fix my problem.

提前谢谢!

推荐答案

您可以使用无限Red的Reactitron

您可能还想签出Perf Monitor,可以从调试"菜单中访问它.

You might also want to check out Perf Monitor which you can access from the Debug menu.

在react native文档中有一整页介绍了性能问题的性能分析和故障排除. https://facebook.github.io/react-native/docs/performance. html

There's a whole page on profiling and troubleshooting perf issues in the react native documentation. https://facebook.github.io/react-native/docs/performance.html

这篇关于我如何调试本机Expo项目中的内存泄漏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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