Commit 204e831
Fix heap snapshot comparisons when an entire category is removed
I recently introduced a bug in heap snapshot comparisons where if all
instances of a class are removed, the class name shows up as blank in
the comparison view. This change fixes the bug by using the class name
from the "before" state when there is no "after" state.
Bug: 377200307
Change-Id: Ia1c42ea25f90fde0f6a92766f52cb6e66c9ec119
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5992931
Reviewed-by: Simon Zünd <[email protected]>
Commit-Queue: Seth Brenith <[email protected]>1 parent 2de6ccf commit 204e831
File tree
4 files changed
+14
-4
lines changed- front_end
- entrypoints/heap_snapshot_worker
- models/heap_snapshot_model
- test/e2e
- memory
- resources/memory
4 files changed
+14
-4
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1333 | 1333 | | |
1334 | 1334 | | |
1335 | 1335 | | |
1336 | | - | |
| 1336 | + | |
1337 | 1337 | | |
1338 | 1338 | | |
1339 | 1339 | | |
| |||
2480 | 2480 | | |
2481 | 2481 | | |
2482 | 2482 | | |
2483 | | - | |
| 2483 | + | |
2484 | 2484 | | |
2485 | 2485 | | |
2486 | 2486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| 154 | + | |
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
584 | 584 | | |
585 | 585 | | |
| 586 | + | |
586 | 587 | | |
587 | 588 | | |
588 | 589 | | |
| |||
598 | 599 | | |
599 | 600 | | |
600 | 601 | | |
601 | | - | |
| 602 | + | |
602 | 603 | | |
603 | 604 | | |
604 | 605 | | |
605 | 606 | | |
| 607 | + | |
| 608 | + | |
606 | 609 | | |
607 | 610 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
0 commit comments