getsentry / getsentry/sentry-java

Measure content provider and application class creation using AppComponentFactory

Open
#3,149 0 comments 0 reactions 0 assignees View on GitHub
Android Improvement Spans
Dominant language
Kotlin
Stars
1.4k
Forks
478
Avg merge
2d 23h
Merged PRs (30d)
67

Description

### Description

Similar to [papa](https://github.com/square/papa/blob/main/papa/src/main/java/papa/PerfAppComponentFactory.kt) we want to not only measure the `.onCreate()` timings, but rather the whole initialization, including class loading and any static init timings.

This is only available on Android P and above. More docs about `AppCompontentFactory` can be found [here](https://developer.android.com/reference/android/app/AppComponentFactory). It's usually registered via AndroidManifest.xml:

```xml

```

Things to consider:
* Could we auto install a `SentryAppComponentFactory` factory?
* How to deal with user-defined factories?
* How to deal with it pre P?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.