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

Issue 1113233002: Adding api to get last gc object statistics for chrome://tracing. (Closed)

Created:
5 years, 7 months ago by ssid
Modified:
5 years, 7 months ago
CC:
v8-dev, Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Adding api to get last gc object statistics for chrome://tracing. For dumping the number of objects and size of objects alive after the last gc into chrome://tracing memory dumps, this CL adds new api to get these number for each isolate. Note: Chrome should be run with --js-flags='--track_gc_object_stats --noincremental-marking' for object tracking. BUG=476013 LOG=Y Committed: https://crrev.com/66083dd05ff812f3402758340bfab18e4f75fa50 Cr-Commit-Position: refs/heads/master@{#28474}

Patch Set 1 #

Patch Set 2 : Adding type name. #

Total comments: 9

Patch Set 3 : Fixing comments. #

Total comments: 18

Patch Set 4 : Addressing ulan's comments. #

Total comments: 1

Patch Set 5 : Fixing api name and rebase #

Total comments: 1

Patch Set 6 : Returning subtypes as different strings. #

Patch Set 7 : Returning subtypes as different strings. #

Total comments: 4

Patch Set 8 : Fixing the code types. #

Total comments: 1

Patch Set 9 : Fixing the comment with NumberOfTrackedHeapObjectTypes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -0 lines) Patch
M include/v8.h View 1 2 3 4 5 6 7 8 2 chunks +35 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 6 2 chunks +38 lines, -0 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 6 7 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (7 generated)
ssid
Adding object count if track_gc_object_stats flag is set.
5 years, 7 months ago (2015-05-01 10:06:22 UTC) #2
ssid
PTAL. thanks.
5 years, 7 months ago (2015-05-05 13:30:22 UTC) #4
picksi
The #define/switch Voodoo is a bit scary, but looks like a common pattern :) https://codereview.chromium.org/1113233002/diff/20001/src/heap/heap.h ...
5 years, 7 months ago (2015-05-05 14:01:55 UTC) #6
Primiano Tucci (use gerrit)
Makes sense to me % some comments. Let's add some V8 folk here? https://codereview.chromium.org/1113233002/diff/20001/include/v8.h File ...
5 years, 7 months ago (2015-05-05 14:17:54 UTC) #7
ssid
comments inline. https://codereview.chromium.org/1113233002/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1113233002/diff/20001/src/api.cc#newcode6928 src/api.cc:6928: size_t Isolate::NumberOfHeapObjectsTypes() { primiano@ here is the ...
5 years, 7 months ago (2015-05-05 14:26:17 UTC) #8
ssid
ulan@ : Please review the changes. Note: The function Heap::GetObjectTypeName is implemented in Heap since ...
5 years, 7 months ago (2015-05-05 14:48:01 UTC) #10
picksi
On 2015/05/05 14:48:01, ssid wrote: > ulan@ : Please review the changes. > > Note: ...
5 years, 7 months ago (2015-05-05 14:50:59 UTC) #11
ulan
In description: > Note: Chrome should be run with --js-flags='--track_gc_object_stats' for object tracking. should be ...
5 years, 7 months ago (2015-05-06 12:46:03 UTC) #12
ssid
Made changes as discussed. PTAL. https://codereview.chromium.org/1113233002/diff/30005/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1113233002/diff/30005/include/v8.h#newcode4821 include/v8.h:4821: size_t object_size() { return ...
5 years, 7 months ago (2015-05-07 13:53:04 UTC) #13
ulan
lgtm if the comment below is addressed and if Michael approves. Michael, how does it ...
5 years, 7 months ago (2015-05-07 14:40:13 UTC) #15
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1113233002/diff/70001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1113233002/diff/70001/include/v8.h#newcode4821 include/v8.h:4821: const char* object_type() { return object_type_; } I wonder ...
5 years, 7 months ago (2015-05-07 16:54:15 UTC) #16
Michael Hablich
On 2015/05/07 14:40:13, ulan wrote: > lgtm if the comment below is addressed and if ...
5 years, 7 months ago (2015-05-07 19:59:07 UTC) #17
ssid
On 2015/05/07 19:59:07, Hablich wrote: > On 2015/05/07 14:40:13, ulan wrote: > > lgtm if ...
5 years, 7 months ago (2015-05-08 10:56:59 UTC) #18
Primiano Tucci (use gerrit)
> The thing is, when are the consumers of the API going to use the ...
5 years, 7 months ago (2015-05-08 11:41:19 UTC) #19
Michael Hablich
On 2015/05/08 11:41:19, Primiano Tucci wrote: > > The thing is, when are the consumers ...
5 years, 7 months ago (2015-05-08 12:06:52 UTC) #20
ulan
> ulan@ I have changed the API to return instance type and instance sub type ...
5 years, 7 months ago (2015-05-11 08:06:52 UTC) #21
Michael Hablich
On 2015/05/11 08:06:52, ulan wrote: > > ulan@ I have changed the API to return ...
5 years, 7 months ago (2015-05-11 08:10:07 UTC) #22
ssid
Thanks made changes. https://codereview.chromium.org/1113233002/diff/110001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1113233002/diff/110001/src/heap/heap.cc#newcode6520 src/heap/heap.cc:6520: *object_type = "CODE_KIND"; \ On 2015/05/11 ...
5 years, 7 months ago (2015-05-11 17:12:33 UTC) #23
Primiano Tucci (use gerrit)
LGTM. Ulan, are you fine with the new dump type/subtype pattern? If so, can this ...
5 years, 7 months ago (2015-05-15 15:23:54 UTC) #24
ulan
LGTM https://codereview.chromium.org/1113233002/diff/130001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1113233002/diff/130001/include/v8.h#newcode5234 include/v8.h:5234: * which ranges from 0 to NumberOfHeapObjectsTypes() - ...
5 years, 7 months ago (2015-05-19 09:31:09 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113233002/150001
5 years, 7 months ago (2015-05-19 10:37:08 UTC) #28
commit-bot: I haz the power
Committed patchset #9 (id:150001)
5 years, 7 months ago (2015-05-19 11:01:47 UTC) #29
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 11:02:04 UTC) #30
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/66083dd05ff812f3402758340bfab18e4f75fa50
Cr-Commit-Position: refs/heads/master@{#28474}

Powered by Google App Engine
This is Rietveld 408576698