Investigate adoption of ProfilingManager triggers
Maintainer thường phản hồi trong vòng 1 ngày
@markushi đang làm issue này rồi.
Từ ngày 21/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
The ProfilingManager API offers a way to setup trigger based profiling (ref: https://developer.android.com/reference/android/os/ProfilingManager#addProfilingTriggers(java.util.List%3Candroid.os.ProfilingTrigger%3E)), giving us profiles for critical moments within the app's lifecycle.
The expected flow
- the SDK sets up triggers using
.addProfilingTriggers() - the SDK setups a results listener using
.registerForAllProfilingResults() - the SDK consumes the results via the listener / or (e.g. when the app gets killed) on the next app start (TBD: confirm if the listener re-delivers the profile, or if we need to scan the directory for profiles)
In contrast, our SDK right now only uses the requestProfiling()API and can only handle call stack profiles. (https://github.com/getsentry/sentry-java/blob/a5555eaf0f620eb63285e9d50ee239bfabff7c5e/sentry-android-core/src/main/java/io/sentry/android/core/PerfettoProfiler.java).
Investigation Scope
- Find out which triggers would be interesting for us
- Investigate what each trigger produces (see https://developer.android.com/reference/android/os/ProfilingManager#constants_1 for the types)
- Investigate the impact of having the existing profiler running side by side with the triggers (e.g. do multiple listeners receive all profiling results, can there be only one listener, who wins, are there any race conditions)
- For all
PROFILING_TYPE_STACK_SAMPLINGprofiles- Would it fit into our
profile_chunkmodel? The main concerns are the profile duration and profile size. - Can we link those
profile_chunksto transactions or errors (viaevent.context.profiler.profiler_id)?- For example a cold app start profile could be linked to the
app.starttransaction - But as ProfilingManager runs in parallel to our sentry transaction model, is it feasible to link them? Are there timing races? When does the system deliver the results?
- For example a cold app start profile could be linked to the
- Would it fit into our
Out of Scope
- Any kind of heap dump profiles
- For
PROFILING_TYPE_SYSTEM_TRACEprofiles- Could it be feasible to parse the trace on the SDK side, similar to what we do for tombstones via https://github.com/abovevacant/epitaph, and transform them into transactions?
- What's their size?
- Could it be feasible to add them as event attachments? If so, could we link them in time?
- Ngôn ngữ chính
- Kotlin
- Star
- 1.4k
- Fork
- 483
- Merge trung bình
- 2 ngày 54 phút
- Pull request đã merge (30 ngày)
- 207
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-java
-
Test the `sentry wizard` Android portCó thể đã có người làm @antonis đã nhận 1 ngày trước. Đang mởPlatform: Java
getsentry/sentry-java#6797 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Narrow and clean up Android consumer keep rulesCó thể đã có người làm @runningcode đã nhận 3 ngày trước. Đang mởAndroid Platform: Java
getsentry/sentry-java#6771 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android Bug Platform: Java Waiting for: Product Owner
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
getsentry/sentry-java#6758 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android Bug Platform: Java Replays
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
getsentry/sentry-java#6741 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android Bug Platform: Java Replays
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
getsentry/sentry-java#6740 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/sentry-java
Issue tương tự
-
[BUG] Issue reported from ReFraĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
IacobIonut01/ReFra#1515 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
openwatersio/slackwater-android#162 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
developmentwithyash/yaan#184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
analytics
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
🐛 Type:Bug 📏 Size: S 🔧 State:In Progress 🔹 Priority: P2 - Medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
yeliqin666/xjtu-toolbox-android#623 · 1 bình luận ·