sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Provide Baseline Profiles for Android packages

Open markushi opened this issue 2 years ago • 2 comments

Problem Statement

Ideally the Sentry Android SDK would ship with baseline profiles. Some more docs around baseline profiles can be found here.

Solution Brainstorm

An Android Emulator (33+) + an app is required to create a baseline profile. Ideally we could re-use our demo app for this and do the following:

  • includes all sentry modules as dependency
  • create a single baseline profile
  • per module: get class names (maybe from classes.jar?) and use it as a whitelist filter the app baseline-profile.txt to create a module specific baseline-profile

markushi avatar May 31 '23 07:05 markushi

We have to understand if it's worth it. It would make a difference only for apps which don't use the baseline profiles at the moment. Also, the improvements would be only regarding the SDK initialization time, not the whole app startup. And how would we create a baseline profile that would benefit all possible SDK versions/setups?

stefanosiano avatar May 31 '23 14:05 stefanosiano

We also want this as with baseline profile the app is crashing

prashantchothani avatar Mar 14 '24 14:03 prashantchothani