Commit f7def75
[RPP] Update sample trace id parsing
As of https://crrev.com/c/6397026 the shape of trace id in CPU profile
changed to a traceid -> node id mapping (before it was sample index ->
traceid). This allows us to simplify their parsing as they are we no
longer need to get the stack data (node id) via the sample index,
effectively removing a level of indirection and preventing bugs due to
the samples order being altered in the frontend (see attached bug).
Fixed: 403628855
Change-Id: I1d56ce8aa6414798a95a20b5dbcd9ecb871043f7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6394268
Reviewed-by: Paul Irish <[email protected]>
Commit-Queue: Andres Olivares <[email protected]>1 parent a175b3f commit f7def75
File tree
3 files changed
+28
-22
lines changed- front_end/models
- cpu_profile
- trace/helpers
3 files changed
+28
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
560 | 568 | | |
561 | 569 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
| |||
237 | 231 | | |
238 | 232 | | |
239 | 233 | | |
240 | | - | |
241 | 234 | | |
242 | 235 | | |
243 | 236 | | |
| |||
249 | 242 | | |
250 | 243 | | |
251 | 244 | | |
252 | | - | |
253 | 245 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
262 | 249 | | |
263 | 250 | | |
264 | 251 | | |
| |||
322 | 309 | | |
323 | 310 | | |
324 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
339 | 337 | | |
340 | 338 | | |
341 | 339 | | |
| |||
0 commit comments