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

Issue 2379823004: [Tracing] Integrate GC object statistics with tracing. (Closed)

Created:
4 years, 2 months ago by lpy
Modified:
4 years, 2 months ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Tracing] Integrate GC object statistics with tracing. Memory infra in tracing currently uses Isolate::GetHeapStatistics to fetch object statistics from V8 at certain frequency, which is not accurate and will have redundant result. This path adds a trace event as well as a trace category at where we collect object statistics after marking before sweeping, and dumps all information to the trace event. In order to use this functionality, we need to enable two flags: --track-gc-object-stats and --noincremental-marking. BUG=v8:5453 Committed: https://crrev.com/a5a9198a9b91619d913161a0d7edf6e2907c70b9 Cr-Commit-Position: refs/heads/master@{#39966}

Patch Set 1 #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -0 lines) Patch
M src/heap/mark-compact.cc View 1 chunk +7 lines, -0 lines 8 comments Download
M src/heap/object-stats.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/heap/object-stats.cc View 2 chunks +64 lines, -0 lines 3 comments Download

Messages

Total messages: 26 (13 generated)
lpy
PTAL
4 years, 2 months ago (2016-09-29 20:09:13 UTC) #4
ssid
looks good to me. https://codereview.chromium.org/2379823004/diff/1/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/2379823004/diff/1/src/heap/mark-compact.cc#newcode2245 src/heap/mark-compact.cc:2245: if (FLAG_track_gc_object_stats) { I thought ...
4 years, 2 months ago (2016-09-29 21:45:31 UTC) #7
lpy
https://codereview.chromium.org/2379823004/diff/1/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/2379823004/diff/1/src/heap/mark-compact.cc#newcode2245 src/heap/mark-compact.cc:2245: if (FLAG_track_gc_object_stats) { On 2016/09/29 21:45:31, ssid wrote: > ...
4 years, 2 months ago (2016-09-29 22:45:42 UTC) #8
lpy
+ulan@ for review.
4 years, 2 months ago (2016-09-29 22:46:09 UTC) #10
fmeawad
lgtm % merging Print and Dump functionalities. https://codereview.chromium.org/2379823004/diff/1/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/2379823004/diff/1/src/heap/mark-compact.cc#newcode2245 src/heap/mark-compact.cc:2245: if (FLAG_track_gc_object_stats) ...
4 years, 2 months ago (2016-09-30 00:44:05 UTC) #12
ulan
Redirecting to Michael because he did a lot of work with GC object stats and ...
4 years, 2 months ago (2016-09-30 08:45:41 UTC) #14
Michael Lippautz
Thanks for working on this! If you feel that we need to change the JSON ...
4 years, 2 months ago (2016-09-30 09:09:45 UTC) #16
Michael Lippautz
Also, if you think that there's more work to be done in v8, maybe create ...
4 years, 2 months ago (2016-09-30 09:37:39 UTC) #17
lpy
I use this JSON format to represent live object and dead object in tracing. See ...
4 years, 2 months ago (2016-09-30 18:21:58 UTC) #19
Michael Lippautz
LGTM We should probably just get rid of the JSON printer and also print the ...
4 years, 2 months ago (2016-10-04 19:08:41 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2379823004/1
4 years, 2 months ago (2016-10-04 23:50:16 UTC) #22
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-05 00:41:31 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 00:41:54 UTC) #26
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/a5a9198a9b91619d913161a0d7edf6e2907c70b9
Cr-Commit-Position: refs/heads/master@{#39966}

Powered by Google App Engine
This is Rietveld 408576698