Commit 7aef66f
Add nodeIndexForId to HeapSnapshotProxy
The MCP server needs to look up the node index for an object id.
Currently this reuses the getAggregates() call, which iterates
through the objects on the main isolate.
This CL adds a new method nodeIndexForId() such that this work can
be performed on the worker isolate. This should avoid any
serialization except for the final node index result value.
There may even be cases where getAggregates() does not find the
given object id because e.g. objects with self_size == 0 do not show
up in the summary view.
Bug: 497855658
Change-Id: I78396a269bf285b5dbb76b3e9405b56f73e1b61a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7899812
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Reviewed-by: Nikolay Vitkov <nvitkov@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>1 parent e6a2d10 commit 7aef66f
3 files changed
Lines changed: 43 additions & 0 deletions
File tree
- front_end
- entrypoints/heap_snapshot_worker
- models/heap_snapshot
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
1030 | 1058 | | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1068 | 1068 | | |
1069 | 1069 | | |
1070 | 1070 | | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1071 | 1082 | | |
1072 | 1083 | | |
1073 | 1084 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
292 | 296 | | |
293 | 297 | | |
294 | 298 | | |
| |||
0 commit comments