getsentry / getsentry/sentry-java
Measure content provider and application class creation using AppComponentFactory
- 主要語言
- Kotlin
- 星號
- 1.4k
- 分支
- 478
- 平均合併
- 2 天 22 小時
- 30 天內合併 PR
- 69
描述
### 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?
貢獻指南
研究方向
從 AppComponentFactory 文件和 issue 中的 AndroidManifest.xml 註冊範例開始。將初始化時機的整體目標與現有的 papa PerfAppComponentFactory 參考實作進行比較,然後確定自動安裝、使用者定義的 factories 以及 Android P 之前的行為應如何運作。當這些相容性與整合問題都有了文件化且達成共識的實作路徑時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, kotlin
- 領域
- mobile
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100