Commit ab5f3ec
committed
Fix: Apply first timestamp delta in StreamingProfilePacket processing
Remove the 'i > 0' guard that was skipping timestamp_delta_us[0] for the
first sample. Per the Perfetto spec, the absolute timestamp of the first
sample should be TracePacket.timestamp + timestamp_delta_us[0], not just
TracePacket.timestamp. This bug was masked in tests that use 0 as the
first delta, but would affect real production traces with non-zero first
deltas.1 parent 49f3bd9 commit ab5f3ec
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
234 | | - | |
| 232 | + | |
235 | 233 | | |
236 | 234 | | |
237 | 235 | | |
| |||
0 commit comments