getsentry / getsentry/sentry-java

Measure content provider and application class creation using AppComponentFactory

Abierto
#3,149 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Android Improvement Spans
Lenguaje dominante
Kotlin
Estrellas
1.4k
Forks
478
Merge medio
2 d 23 h
PR fusionados (30 d)
67

Descripción

### 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?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.