getsentry / getsentry/sentry-java

Profiler samples are re-anchored once at profile end

オープン
#5,581 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
Platform: Java
主要言語
Kotlin
スター
1.4k
フォーク
478
平均マージ
2日 23時間
マージ済み PR(30日)
67

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, java
領域
mobile-dev, performance
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。