getsentry / getsentry/sentry-java

Profiler samples are re-anchored once at profile end

Ouverte
#5,581 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Platform: Java
Langage dominant
Kotlin
Étoiles
1.4k
Forks
478
Merge moyen
2 j 23 h
PR mergées (30 j)
67

Description

Audit finding **C1 — theoretical, LOW-MEDIUM**.

`AndroidProfiler` computes `timestampDiff` (the elapsedRealtime↔wall offset) once at profile end and applies it to every wall-stamped `PerformanceCollectionData` sample (`sentry-android-core/src/main/java/io/sentry/android/core/AndroidProfiler.java:309-324`). A wall step during the profile shifts all earlier CPU/memory samples relative to the trace.

Source: [JAVA-557]() §C1.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Read AndroidProfiler.java at lines 309-324 and trace how timestampDiff is computed at profile end and applied to PerformanceCollectionData samples. Verify the behavior around a wall-clock step during profiling, then ensure earlier CPU and memory samples are not shifted relative to the trace; confirm the corrected timestamp alignment with the relevant profiler coverage.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
android, java
Domaine
mobile-dev, performance
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
48/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.