We have an app which is built on react native with new architecture enabled. We have turbo modules which interacts with c++ functions for inference. We have situation where the c++ functions takes up to 1 GB of memory and we are optimising the same. But the critical part is to optimise the js functions which are interacting with realm DB. Now we want to understand which block of code occupies memory in the JS side.
Options which we tried already.
- Hermes debugger – It is able to profile and show the objects. But we are unable to relate it with the JS code
- Memory profiler in Android – It helped us in identifying exact c++ functions which takes more memory. but not at the JS level.