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

Issue 1088683003: Adding v8_isolate_memory_dump_provider. (Closed)

Created:
5 years, 8 months ago by ssid
Modified:
5 years, 7 months ago
CC:
Sami
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding v8_isolate_memory_dump_provider. This CL adds a dump provider for dumping V8 heap memory statistics into the tracing. The dump provider gets statistics from isolate and adds to the dump. Each isolate when created, adds a dump provider. The dump provider here is owned by IsolateHolder and gets registered when it IsolateHolder is created and unregistered when IsolateHolder is destroyed. BUG=476013 Committed: https://crrev.com/83aa5be892018f800328c1b7d03f6fc37bc22d5b Cr-Commit-Position: refs/heads/master@{#328946}

Patch Set 1 #

Patch Set 2 : #

Total comments: 22

Patch Set 3 : Addressing primiano's comments. #

Patch Set 4 : Addressed all comments. #

Patch Set 5 : Rebase for primiano's changes. #

Total comments: 12

Patch Set 6 : Fixing build. #

Total comments: 6

Patch Set 7 : Fixed all comments. #

Patch Set 8 : Nit. #

Patch Set 9 : more nits. #

Total comments: 16

Patch Set 10 : Addressing rmcilroy's comments. #

Patch Set 11 : Rebase for using locker. #

Total comments: 6

Patch Set 12 : Fixing TODO. #

Patch Set 13 : Fixing build. #

Patch Set 14 : Rebase for interface changes and fixing tests. #

Total comments: 2

Patch Set 15 : Fixing message loop check. #

Total comments: 2

Patch Set 16 : Adding dummy task runner. #

Patch Set 17 : Moving test fixes to different CL, removing unnecessary casts. #

Total comments: 6

Patch Set 18 : Fixing nits. #

Total comments: 2

Patch Set 19 : Adding heap_spaces child. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -0 lines) Patch
M gin/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M gin/gin.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M gin/isolate_holder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +3 lines, -0 lines 0 comments Download
M gin/public/isolate_holder.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
A gin/v8_isolate_memory_dump_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +36 lines, -0 lines 0 comments Download
A gin/v8_isolate_memory_dump_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +108 lines, -0 lines 0 comments Download

Messages

Total messages: 61 (19 generated)
ssid
5 years, 8 months ago (2015-04-17 16:16:09 UTC) #2
Primiano Tucci (use gerrit)
Looks great, just have some nits but makes perfect sense. Thanks https://codereview.chromium.org/1088683003/diff/20001/gin/isolate_holder.cc File gin/isolate_holder.cc (right): ...
5 years, 8 months ago (2015-04-17 19:10:31 UTC) #3
ssid
+rmcilroy Can you look at the v8_isolate_memory_dump_provider.cc file. This has the data finally shown in ...
5 years, 8 months ago (2015-04-20 09:28:38 UTC) #4
ssid
primiano@ PTAL.
5 years, 8 months ago (2015-04-20 10:57:33 UTC) #5
Primiano Tucci (use gerrit)
Please rebase this, I made some small changes to the MDProvider class for the attributes ...
5 years, 8 months ago (2015-04-21 06:38:41 UTC) #6
ssid
PTAL.
5 years, 8 months ago (2015-04-21 16:15:44 UTC) #7
Primiano Tucci (use gerrit)
Just few comments, looks great! https://codereview.chromium.org/1088683003/diff/80001/gin/v8_isolate_memory_dump_provider.cc File gin/v8_isolate_memory_dump_provider.cc (right): https://codereview.chromium.org/1088683003/diff/80001/gin/v8_isolate_memory_dump_provider.cc#newcode21 gin/v8_isolate_memory_dump_provider.cc:21: const char kIsolateDumpName[] = ...
5 years, 8 months ago (2015-04-21 16:43:43 UTC) #8
rmcilroy
not looked at at the dumper code yet, but a couple of comments while I ...
5 years, 8 months ago (2015-04-21 17:13:03 UTC) #10
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1088683003/diff/100001/gin/v8_isolate_memory_dump_provider.cc File gin/v8_isolate_memory_dump_provider.cc (right): https://codereview.chromium.org/1088683003/diff/100001/gin/v8_isolate_memory_dump_provider.cc#newcode81 gin/v8_isolate_memory_dump_provider.cc:81: space_dump->SetAttribute( Had a chat with Ross, just delete this ...
5 years, 8 months ago (2015-04-21 17:13:40 UTC) #11
ssid
https://codereview.chromium.org/1088683003/diff/100001/gin/isolate_holder.cc File gin/isolate_holder.cc (right): https://codereview.chromium.org/1088683003/diff/100001/gin/isolate_holder.cc#newcode51 gin/isolate_holder.cc:51: isolate_memory_dump_provider_.reset(); On 2015/04/21 17:13:03, rmcilroy wrote: > Do you ...
5 years, 8 months ago (2015-04-21 17:17:49 UTC) #12
ssid
On 2015/04/21 17:17:49, ssid wrote: > https://codereview.chromium.org/1088683003/diff/100001/gin/isolate_holder.cc > File gin/isolate_holder.cc (right): > > https://codereview.chromium.org/1088683003/diff/100001/gin/isolate_holder.cc#newcode51 > ...
5 years, 8 months ago (2015-04-21 17:19:10 UTC) #13
ssid
Made changes. PTAL. https://codereview.chromium.org/1088683003/diff/80001/gin/v8_isolate_memory_dump_provider.cc File gin/v8_isolate_memory_dump_provider.cc (right): https://codereview.chromium.org/1088683003/diff/80001/gin/v8_isolate_memory_dump_provider.cc#newcode21 gin/v8_isolate_memory_dump_provider.cc:21: const char kIsolateDumpName[] = "isolate"; On ...
5 years, 8 months ago (2015-04-21 17:38:23 UTC) #14
Primiano Tucci (use gerrit)
LGTM, +rmcilroy for a final look and +jochen for OWNERS stamp
5 years, 8 months ago (2015-04-21 18:08:22 UTC) #16
rmcilroy
https://codereview.chromium.org/1088683003/diff/160001/gin/v8_isolate_memory_dump_provider.cc File gin/v8_isolate_memory_dump_provider.cc (right): https://codereview.chromium.org/1088683003/diff/160001/gin/v8_isolate_memory_dump_provider.cc#newcode25 gin/v8_isolate_memory_dump_provider.cc:25: : MemoryDumpProvider(base::MessageLoop::current()->task_runner()) { I think you should be using ...
5 years, 8 months ago (2015-04-21 21:57:26 UTC) #17
ssid
Made changes. PTAL. https://codereview.chromium.org/1088683003/diff/160001/gin/v8_isolate_memory_dump_provider.cc File gin/v8_isolate_memory_dump_provider.cc (right): https://codereview.chromium.org/1088683003/diff/160001/gin/v8_isolate_memory_dump_provider.cc#newcode25 gin/v8_isolate_memory_dump_provider.cc:25: : MemoryDumpProvider(base::MessageLoop::current()->task_runner()) { On 2015/04/21 21:57:26, ...
5 years, 8 months ago (2015-04-22 10:41:36 UTC) #18
jochen (gone - plz use gerrit)
lgtm
5 years, 8 months ago (2015-04-22 14:55:00 UTC) #19
rmcilroy
lgtm, thanks. https://codereview.chromium.org/1088683003/diff/160001/gin/v8_isolate_memory_dump_provider.h File gin/v8_isolate_memory_dump_provider.h (right): https://codereview.chromium.org/1088683003/diff/160001/gin/v8_isolate_memory_dump_provider.h#newcode16 gin/v8_isolate_memory_dump_provider.h:16: // summarized memory stats about the V8 ...
5 years, 8 months ago (2015-04-22 15:41:06 UTC) #20
jochen (gone - plz use gerrit)
On 2015/04/22 at 15:41:06, rmcilroy wrote: > lgtm, thanks. > > https://codereview.chromium.org/1088683003/diff/160001/gin/v8_isolate_memory_dump_provider.h > File gin/v8_isolate_memory_dump_provider.h ...
5 years, 8 months ago (2015-04-22 15:50:45 UTC) #21
ssid
On 2015/04/22 15:50:45, jochen wrote: > On 2015/04/22 at 15:41:06, rmcilroy wrote: > > lgtm, ...
5 years, 8 months ago (2015-04-22 16:00:34 UTC) #22
Primiano Tucci (use gerrit)
On 2015/04/22 16:00:34, ssid wrote: > On 2015/04/22 15:50:45, jochen wrote: > > On 2015/04/22 ...
5 years, 8 months ago (2015-04-22 17:31:00 UTC) #23
ssid
On 2015/04/22 17:31:00, Primiano Tucci wrote: > On 2015/04/22 16:00:34, ssid wrote: > > On ...
5 years, 8 months ago (2015-04-24 15:14:39 UTC) #28
jochen (gone - plz use gerrit)
Cool, lgtm
5 years, 8 months ago (2015-04-24 15:16:56 UTC) #29
Primiano Tucci (use gerrit)
Just some final nits, thanks https://codereview.chromium.org/1088683003/diff/280001/gin/v8_isolate_memory_dump_provider.cc File gin/v8_isolate_memory_dump_provider.cc (right): https://codereview.chromium.org/1088683003/diff/280001/gin/v8_isolate_memory_dump_provider.cc#newcode77 gin/v8_isolate_memory_dump_provider.cc:77: space_dump->set_physical_size_in_bytes(static_cast<int>((space_size))); set_physical_size_in_bytes takes a ...
5 years, 8 months ago (2015-04-27 08:41:03 UTC) #30
ssid
Fixed comments, PTAL. https://codereview.chromium.org/1088683003/diff/280001/gin/v8_isolate_memory_dump_provider.cc File gin/v8_isolate_memory_dump_provider.cc (right): https://codereview.chromium.org/1088683003/diff/280001/gin/v8_isolate_memory_dump_provider.cc#newcode77 gin/v8_isolate_memory_dump_provider.cc:77: space_dump->set_physical_size_in_bytes(static_cast<int>((space_size))); On 2015/04/27 08:41:03, Primiano Tucci ...
5 years, 8 months ago (2015-04-27 12:15:28 UTC) #32
Primiano Tucci (use gerrit)
LGTM thanks. P.S. DId you fix the reporting issue where the other heaps was under-flowing ...
5 years, 8 months ago (2015-04-27 12:34:03 UTC) #33
ssid
On 2015/04/27 12:34:03, Primiano Tucci wrote: > LGTM thanks. > P.S. DId you fix the ...
5 years, 8 months ago (2015-04-27 14:02:29 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1088683003/320001
5 years, 8 months ago (2015-04-27 14:03:01 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1088683003/340001
5 years, 8 months ago (2015-04-27 16:52:30 UTC) #40
ssid
Rebased for interface changes. PTAL.
5 years, 7 months ago (2015-04-29 15:58:30 UTC) #42
Sami
Thanks, lgtm with a small tweak. https://codereview.chromium.org/1088683003/diff/360001/content/test/test_blink_web_unit_test_support.cc File content/test/test_blink_web_unit_test_support.cc (right): https://codereview.chromium.org/1088683003/diff/360001/content/test/test_blink_web_unit_test_support.cc#newcode60 content/test/test_blink_web_unit_test_support.cc:60: if (base::MessageLoopProxy::current()) { ...
5 years, 7 months ago (2015-04-29 16:15:38 UTC) #44
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1088683003/diff/380001/content/test/test_blink_web_unit_test_support.cc File content/test/test_blink_web_unit_test_support.cc (right): https://codereview.chromium.org/1088683003/diff/380001/content/test/test_blink_web_unit_test_support.cc#newcode48 content/test/test_blink_web_unit_test_support.cc:48: base::MessageLoop message_loop; Hmm this will destroy the messageloop after ...
5 years, 7 months ago (2015-04-29 17:45:11 UTC) #45
Sami
https://codereview.chromium.org/1088683003/diff/380001/content/test/test_blink_web_unit_test_support.cc File content/test/test_blink_web_unit_test_support.cc (right): https://codereview.chromium.org/1088683003/diff/380001/content/test/test_blink_web_unit_test_support.cc#newcode48 content/test/test_blink_web_unit_test_support.cc:48: base::MessageLoop message_loop; On 2015/04/29 17:45:11, Primiano Tucci wrote: > ...
5 years, 7 months ago (2015-04-29 17:48:23 UTC) #46
Primiano Tucci (use gerrit)
Thanks for the hard work. LGTM with 3 final micro-nits. Wait for the isolate holder ...
5 years, 7 months ago (2015-05-07 16:25:43 UTC) #47
ssid
Done. https://codereview.chromium.org/1088683003/diff/360001/content/test/test_blink_web_unit_test_support.cc File content/test/test_blink_web_unit_test_support.cc (right): https://codereview.chromium.org/1088683003/diff/360001/content/test/test_blink_web_unit_test_support.cc#newcode60 content/test/test_blink_web_unit_test_support.cc:60: if (base::MessageLoopProxy::current()) { On 2015/04/29 16:15:38, Sami wrote: ...
5 years, 7 months ago (2015-05-08 08:37:40 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1088683003/440001
5 years, 7 months ago (2015-05-08 08:38:38 UTC) #51
Primiano Tucci (use gerrit)
Very sorry for unticking at the last moment. I just realized we might need an ...
5 years, 7 months ago (2015-05-08 08:50:35 UTC) #53
ssid
On 2015/05/08 08:50:35, Primiano Tucci wrote: > Very sorry for unticking at the last moment. ...
5 years, 7 months ago (2015-05-08 09:11:33 UTC) #54
ssid
Done. https://codereview.chromium.org/1088683003/diff/440001/gin/v8_isolate_memory_dump_provider.cc File gin/v8_isolate_memory_dump_provider.cc (right): https://codereview.chromium.org/1088683003/diff/440001/gin/v8_isolate_memory_dump_provider.cc#newcode67 gin/v8_isolate_memory_dump_provider.cc:67: "%s/%s_%p/%s", kRootDumpName, kIsolateDumpName, On 2015/05/08 08:50:34, Primiano Tucci ...
5 years, 7 months ago (2015-05-08 09:46:55 UTC) #55
Primiano Tucci (use gerrit)
still LGTM, thanks
5 years, 7 months ago (2015-05-08 10:37:28 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1088683003/460001
5 years, 7 months ago (2015-05-08 10:37:52 UTC) #59
commit-bot: I haz the power
Committed patchset #19 (id:460001)
5 years, 7 months ago (2015-05-08 12:03:40 UTC) #60
commit-bot: I haz the power
5 years, 7 months ago (2015-05-08 12:06:58 UTC) #61
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/83aa5be892018f800328c1b7d03f6fc37bc22d5b
Cr-Commit-Position: refs/heads/master@{#328946}

Powered by Google App Engine
This is Rietveld 408576698