Commit 5a1264d
RPP: fix extra clone of array in RendererHandler
If you enable the debug experiment, we render samples onto the UI. The
code in `RendererHandler` to do this checked `if(jsSamples)` but
`jsSamples` is an array, so this is always true.
The code within then creates a clone of `allTraceEntries` and then does
another sort on `thread.entries`, both of which we actually only want to
do if the samples _have any length_.
This CL fixes the check to ensure we don't needlessly clone the arrays.
[email protected]
Bug: 436491188
Change-Id: I9fa5e4f0bfaf542d0cf0fd1cdae0dd74825730d4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6827313
Commit-Queue: Alina Varkki <[email protected]>
Auto-Submit: Jack Franklin <[email protected]>
Reviewed-by: Alina Varkki <[email protected]>1 parent da76b6d commit 5a1264d
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
346 | 347 | | |
347 | 348 | | |
348 | | - | |
| 349 | + | |
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
| |||
0 commit comments