sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Add Device Level Mobile App Profiling Metrics

Open KatePetersonFD opened this issue 2 years ago • 2 comments

We recently upgraded our SDK version to 5.12.0 in order to take advantage of profiling. During our initial test run we were able to add component tracking on a higher level component using the withProfiler hook and analyze the results with a small subset of users.

We are now interested in collecting device level metrics such as battery, CPU, and memory usage. We saw this feature is available for Mobile App Profiling, but not yet for react-native. We also had a chance to speak to one of your solutions engineers, and they showed us how we could potentially use custom instrumentation and custom metrics to achieve the desired result. However, for our organization they are likely to push-back on this custom instrumentation and want to leverage something more "out-of-the-box".

Ultimately, this feature would enable us to complete AB testing of our app and see how changes are impacting different devices and operating systems.

In addition, it would be great to track the number of re-renders that occur on different pages (thought I would throw it in there as a nice to have!).

KatePetersonFD avatar Nov 13 '23 14:11 KatePetersonFD

Hi @KatePetersonFD, thanks for writing in and for your interest in Profiling and this feature. We're currently working on mixed Profiles (JS + iOS/Android native Profiles) and want to explore adding Profiling CPU/Mem metrics at a later time.

kahest avatar Nov 14 '23 08:11 kahest

RN Profiling on iOS adds measurements in https://github.com/getsentry/sentry-react-native/pull/3349

We still need to enable this in the profiling view in the product. https://github.com/getsentry/sentry/issues/59989

krystofwoldrich avatar Nov 17 '23 15:11 krystofwoldrich