Repository navigation
Commit 5db16aa
committed
Fix Gecko timestamps when replaying binary profiles
The block reader buffered the first sample for every reconstructed stack.
A later stream could therefore be delivered before the earliest sample,
causing Gecko to use the wrong replay time origin and produce negative
timestamps.
Emit newly reconstructed stacks immediately and reserve batching for
repeated stacks. This restores the previous replay behavior while keeping
repeat batches efficient.1 parent 874f7d5 commit 5db16aa
2 files changed
Lines changed: 42 additions & 9 deletions
File tree
- Lib/test/test_profiling/test_sampling_profiler
- Modules/_remote_debugging
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
478 | 501 | | |
479 | 502 | | |
480 | 503 | | |
| |||
2197 | 2220 | | |
2198 | 2221 | | |
2199 | 2222 | | |
2200 | | - | |
| 2223 | + | |
2201 | 2224 | | |
2202 | 2225 | | |
2203 | 2226 | | |
2204 | | - | |
| 2227 | + | |
2205 | 2228 | | |
2206 | | - | |
| 2229 | + | |
2207 | 2230 | | |
2208 | 2231 | | |
2209 | 2232 | | |
2210 | | - | |
2211 | | - | |
| 2233 | + | |
| 2234 | + | |
2212 | 2235 | | |
2213 | 2236 | | |
2214 | 2237 | | |
| |||
2232 | 2255 | | |
2233 | 2256 | | |
2234 | 2257 | | |
2235 | | - | |
| 2258 | + | |
2236 | 2259 | | |
2237 | 2260 | | |
2238 | 2261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1422 | 1422 | | |
1423 | 1423 | | |
1424 | 1424 | | |
| 1425 | + | |
1425 | 1426 | | |
1426 | 1427 | | |
1427 | 1428 | | |
| |||
1462 | 1463 | | |
1463 | 1464 | | |
1464 | 1465 | | |
1465 | | - | |
| 1466 | + | |
1466 | 1467 | | |
1467 | 1468 | | |
1468 | 1469 | | |
| |||
1472 | 1473 | | |
1473 | 1474 | | |
1474 | 1475 | | |
1475 | | - | |
| 1476 | + | |
| 1477 | + | |
1476 | 1478 | | |
1477 | 1479 | | |
1478 | 1480 | | |
| |||
1495 | 1497 | | |
1496 | 1498 | | |
1497 | 1499 | | |
1498 | | - | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
1499 | 1509 | | |
1500 | 1510 | | |
1501 | 1511 | | |
| |||
0 commit comments