Commit 792ed74
RPP: sort process windows before setting them
In the screenshot of the bug below, notice how for one process for a
frame we end up setting its time range to invalid, negative numbers.
This is because we were not sorting the windows first, which is
required. We had an assumption that the timestamps of the trace events
come in time order, but that is clearly not always true, so this CL
updates the code to sort first to ensure we have them ordered correctly
before we then set the bounds for each process.
Bug: 402658800
Change-Id: I1b0a394f98cf4538f81cfa4debada97987655593
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6346911
Auto-Submit: Jack Franklin <[email protected]>
Reviewed-by: Nancy Li <[email protected]>
Commit-Queue: Nancy Li <[email protected]>1 parent a28d2ab commit 792ed74
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
337 | 343 | | |
338 | 344 | | |
339 | 345 | | |
| |||
0 commit comments