Commit dae2219
deps: V8: cherry-pick 0f024d4e66e0
Original commit message:
[heap profiler] Add is_live field to AllocationProfile::Sample
When using kSamplingIncludeObjectsCollectedByMajorGC/MinorGC flag, samples for collected objects are retained but callers had no way to distinguish live from dead objects.
Add is_live to expose this information.
Change-Id: I2e930644348ff942caa4b192a127c5baa05bbfef
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7603535
Reviewed-by: Dominik Inführ <dinfuehr@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#105698}
Refs: v8/v8@0f024d4
Signed-off-by: ishabi <ilyasshabi94@gmail.com>
PR-URL: #62408
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent f6ce381 commit dae2219Copy full SHA for dae2219
5 files changed
+86-2Lines changed: 86 additions & 2 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- deps/v8
- include
- src/profiler
- test/cctest
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
38 | 38 | |
39 | 39 | |
40 | 40 | |
41 | | - |
| 41 | + |
42 | 42 | |
43 | 43 | |
44 | 44 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
155 | 155 | |
156 | 156 | |
157 | 157 | |
| 158 | + |
158 | 159 | |
159 | 160 | |
160 | 161 | |
|
Collapse file
deps/v8/include/v8-profiler.h
Copy file name to clipboardExpand all lines: deps/v8/include/v8-profiler.h+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
830 | 830 | |
831 | 831 | |
832 | 832 | |
| 833 | + |
| 834 | + |
| 835 | + |
| 836 | + |
| 837 | + |
| 838 | + |
833 | 839 | |
834 | 840 | |
835 | 841 | |
|
Collapse file
deps/v8/src/profiler/sampling-heap-profiler.cc
Copy file name to clipboardExpand all lines: deps/v8/src/profiler/sampling-heap-profiler.cc+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
312 | 312 | |
313 | 313 | |
314 | 314 | |
| 315 | + |
315 | 316 | |
316 | 317 | |
317 | | - |
| 318 | + |
318 | 319 | |
319 | 320 | |
320 | 321 | |
|
Collapse file
deps/v8/test/cctest/test-heap-profiler.cc
Copy file name to clipboardExpand all lines: deps/v8/test/cctest/test-heap-profiler.cc+76Lines changed: 76 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4442 | 4442 | |
4443 | 4443 | |
4444 | 4444 | |
| 4445 | + |
| 4446 | + |
| 4447 | + |
| 4448 | + |
| 4449 | + |
| 4450 | + |
| 4451 | + |
| 4452 | + |
| 4453 | + |
| 4454 | + |
| 4455 | + |
| 4456 | + |
| 4457 | + |
| 4458 | + |
| 4459 | + |
| 4460 | + |
| 4461 | + |
| 4462 | + |
| 4463 | + |
| 4464 | + |
| 4465 | + |
| 4466 | + |
| 4467 | + |
| 4468 | + |
| 4469 | + |
| 4470 | + |
| 4471 | + |
| 4472 | + |
| 4473 | + |
| 4474 | + |
| 4475 | + |
| 4476 | + |
| 4477 | + |
| 4478 | + |
| 4479 | + |
| 4480 | + |
| 4481 | + |
| 4482 | + |
| 4483 | + |
| 4484 | + |
| 4485 | + |
| 4486 | + |
| 4487 | + |
| 4488 | + |
| 4489 | + |
| 4490 | + |
| 4491 | + |
| 4492 | + |
| 4493 | + |
| 4494 | + |
| 4495 | + |
| 4496 | + |
| 4497 | + |
| 4498 | + |
| 4499 | + |
| 4500 | + |
| 4501 | + |
| 4502 | + |
| 4503 | + |
| 4504 | + |
| 4505 | + |
| 4506 | + |
| 4507 | + |
| 4508 | + |
| 4509 | + |
| 4510 | + |
| 4511 | + |
| 4512 | + |
| 4513 | + |
| 4514 | + |
| 4515 | + |
| 4516 | + |
| 4517 | + |
| 4518 | + |
| 4519 | + |
| 4520 | + |
4445 | 4521 | |
4446 | 4522 | |
4447 | 4523 | |
|
0 commit comments