Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Issue 1997363002: Adds support for collecting statistics about code and its metadata. (Closed)

Created:
4 years, 7 months ago by mythria
Modified:
4 years, 7 months ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), Michael Hablich, ulan, Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Adds support for collecting statistics about code and its metadata. Adds an API to request the total size of code/bytecode and their associated metadata in the heap. When requested, the code_space, old_space and large_object_space is scanned to find any code/bytecode array objects. This could be slow and hence it should be used with caution. BUG=v8:5019 LOG=N Committed: https://crrev.com/c1af2821eaf8333ea2af8f121bd69c9701d8ae65 Cr-Commit-Position: refs/heads/master@{#36534}

Patch Set 1 #

Patch Set 2 : Fixed a bug. #

Patch Set 3 : Fixed a compile time error on the windows bots. #

Total comments: 8

Patch Set 4 : Addressed comments from Ross. Removes the flag code_and_metadata_stats #

Total comments: 4

Patch Set 5 : Addressed comments from Hannes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -78 lines) Patch
M include/v8.h View 2 chunks +21 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 1 chunk +2 lines, -13 lines 0 comments Download
M src/heap/heap.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 2 chunks +10 lines, -5 lines 0 comments Download
M src/heap/spaces.h View 4 chunks +9 lines, -2 lines 0 comments Download
M src/heap/spaces.cc View 1 2 3 8 chunks +79 lines, -53 lines 0 comments Download
M src/isolate.h View 1 2 chunks +6 lines, -4 lines 0 comments Download
M src/log.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 chunks +15 lines, -1 line 0 comments Download
M src/objects.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 3 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997363002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997363002/20001
4 years, 7 months ago (2016-05-23 08:59:57 UTC) #2
mythria
PTAL. Thanks, Mythri
4 years, 7 months ago (2016-05-23 09:01:23 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel_ng/builds/7685)
4 years, 7 months ago (2016-05-23 09:05:36 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997363002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997363002/40001
4 years, 7 months ago (2016-05-23 09:50:50 UTC) #8
rmcilroy
Looks reasonable. A couple of comments and I'll leave Hannes to approve. https://codereview.chromium.org/1997363002/diff/40001/src/flag-definitions.h File src/flag-definitions.h ...
4 years, 7 months ago (2016-05-23 10:16:30 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-23 10:22:58 UTC) #11
mythria
Thanks Ross, I addressed your comments. Thanks, Mythri https://codereview.chromium.org/1997363002/diff/40001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/1997363002/diff/40001/src/flag-definitions.h#newcode741 src/flag-definitions.h:741: DEFINE_BOOL(code_and_metadata_stats, ...
4 years, 7 months ago (2016-05-23 11:27:51 UTC) #13
Hannes Payer (out of office)
LGTM https://codereview.chromium.org/1997363002/diff/60001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/1997363002/diff/60001/src/compiler.cc#newcode451 src/compiler.cc:451: return info->code()->SizeIncludingMetadata(); Drop the else statement. https://codereview.chromium.org/1997363002/diff/60001/src/heap/spaces.cc File ...
4 years, 7 months ago (2016-05-25 19:16:20 UTC) #14
mythria
Thanks Hannes. I addressed the nits and I agree that its better to have a ...
4 years, 7 months ago (2016-05-26 08:51:06 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997363002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997363002/80001
4 years, 7 months ago (2016-05-26 08:51:23 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-26 09:25:15 UTC) #19
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-26 09:25:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997363002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997363002/80001
4 years, 7 months ago (2016-05-26 09:44:34 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-26 09:46:45 UTC) #25
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 09:47:37 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c1af2821eaf8333ea2af8f121bd69c9701d8ae65
Cr-Commit-Position: refs/heads/master@{#36534}

Powered by Google App Engine
This is Rietveld 408576698