discussions-and-proposals icon indicating copy to clipboard operation
discussions-and-proposals copied to clipboard

What profiling React Native in production means

Open nitish24p opened this issue 3 years ago • 0 comments

Introduction

React native has built a pretty decent ecosystem around tooling and profling an app in a debug / dev mode. We often end up using dev tools from react or a hermes profiles flame graphs to see how our app has performed. My question was is there something similar i can do to get some metrics about RN in production, for example see how the bridge calls perform, or how fast is performSynRoot, or the commit phase in RN in prod

Details

Discussion points

RN also provides a set of static markers https://github.com/facebook/react-native/blob/main/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java I was wondering other than these is there any way to profile RN in production, where i collect some Bridge level or React side metrics and push them to a statsD / prometheus server.

nitish24p avatar Aug 17 '22 04:08 nitish24p