This is still a POC in the experimental stage.
The goal is to be able to measure the performance of any app in production on Android. 🤩
- Publish a CLI package 🚀
- Integrate measures with the Flipper plugin 🔥
- Show RAM usage
- Show full CPU usage
- Show CPU usage per process and CPU core
For instance, this is me profiling the Coinbase app in production:
I think they can complement each other.
- I plan to integrate the measures from this profiler in the Flipper plugin
- The Flipper plugin should be more accurate with FPS data
- Also this profiler will probably never support iOS
# This will print out JS Thread CPU Usage every 500ms
npx react-native-profiler com.coinbase.android
If you need to find an app's bundle id:
adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp|mInputMethodTarget|mSurface'
If you want a nice graph in your terminal, you can use ttyplot and run:
npx react-native-profiler com.coinbase.android | ttyplot -s 100 -t "JS Thread CPU usage %" -u "%"