Investigate adoption of ProfilingManager triggers
Los mantenedores suelen responder en 1 día
@markushi ya está trabajando en esto.
Desde el 21/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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?
- Lenguaje dominante
- Kotlin
- Estrellas
- 1.4k
- Forks
- 483
- Merge medio
- 2 d 54 min
- PR fusionados (30 d)
- 207
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/sentry-java
-
Test the `sentry wizard` Android portPosiblemente ocupada @antonis la tomó hace 1 día. AbiertoPlatform: Java
getsentry/sentry-java#6797 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Narrow and clean up Android consumer keep rulesPosiblemente ocupada @runningcode la tomó hace 3 días. AbiertoAndroid Platform: Java
getsentry/sentry-java#6771 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Android Bug Platform: Java Waiting for: Product Owner
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
getsentry/sentry-java#6758 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Android Bug Platform: Java Replays
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
getsentry/sentry-java#6741 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Android Bug Platform: Java Replays
Dificultad 3/5 1-2 días Aptitud para principiantes 50/100
getsentry/sentry-java#6740 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/sentry-java
Issues similares
-
[BUG] Issue reported from ReFraAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
IacobIonut01/ReFra#1515 · 1 comentario ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
openwatersio/slackwater-android#162 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 Medio día Aptitud para principiantes 72/100
developmentwithyash/yaan#184 ·
Los mantenedores suelen responder en 1 día
-
analytics
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
🐛 Type:Bug 📏 Size: S 🔧 State:In Progress 🔹 Priority: P2 - Medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
yeliqin666/xjtu-toolbox-android#623 · 1 comentario ·