getsentry / getsentry/sentry-java

Measure content provider and application class creation using AppComponentFactory

Đang mở
#3,149 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Android Improvement Spans
Ngôn ngữ chính
Kotlin
Star
1.4k
Fork
478
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
67

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.