Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging - How to profile react native memory usage

General question. I'm developing an app using React Native, and certain actions bring my app up to around 500MB of RAM, where it usually gets killed.

I've searched the web for good material on RN memory profiling but have found nothing. I've tried using Instruments, but it's output doesn't give me much insight as to what are my memory guzzling processes.

TL;DR: Do you have a good way of profiling memory usage in React Native?

P.S. currently focusing on iOS.

Thanks in advance!
Uri

like image 535
Uri Klar Avatar asked Dec 06 '25 03:12

Uri Klar


1 Answers

You can use Xcode and Android studio for this case. On Xcode, you can check below screenshot. enter image description here

Also for the Android Studio, you can open profiler on 'View->Tool Windows->Profiler'

like image 191
Daniel Zheng Avatar answered Dec 07 '25 17:12

Daniel Zheng



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!