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

Issue 1642023007: Refactoring: Move functions from WebMemoryDumpProviderAdapter to PartitionAllocMemoryDumpProvider (Closed)

Created:
4 years, 10 months ago by hajimehoshi
Modified:
4 years, 10 months ago
CC:
Mads Ager (chromium), bashi, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, haraken, jam, kinuko+watch, kouhei+heap_chromium.org, oilpan-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactoring: Move functions from WebMemoryDumpProviderAdapter to PartitionAllocMemoryDumpProvider Before this CL, allocation hook registerings for heap profiling existed at child/content/WebMemoryDumpProviderAdapter as global functions for only one allocater (PartitionAlloc). It is because platform directory couldn't depend on base/trace_event and those logic needed to be in Chromium side. Now platform directory can refer base/trace_events, we can move those functions from Chromium side to Blink side so that we can easily add heap profiling for other allocaters like Oilpan. Next I'm going to remove WebMemoryDumpProviderAdapter which was needed when platform couldn't depend on base/trace_event. BUG=548254 TEST=n/a Committed: https://crrev.com/7e94fbc7dd28ce78aa12234b93bc52052f243448 Cr-Commit-Position: refs/heads/master@{#373204}

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : haraken's review #

Total comments: 5

Patch Set 4 : primiano's review #

Total comments: 2

Patch Set 5 : primiano's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -93 lines) Patch
M content/child/web_memory_dump_provider_adapter.cc View 1 2 chunks +1 line, -83 lines 0 comments Download
M content/child/web_process_memory_dump_impl.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M content/child/web_process_memory_dump_impl.cc View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.h View 2 chunks +19 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp View 1 2 3 4 5 chunks +53 lines, -5 lines 0 comments Download
M third_party/WebKit/public/platform/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebMemoryDumpProvider.h View 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/WebProcessMemoryDump.h View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 25 (8 generated)
hajimehoshi
PTAL +kinuko content/child +tkent third_party/Webkit/public, third_party/Webkit/Source/platform
4 years, 10 months ago (2016-01-29 08:47:48 UTC) #3
tkent
+esprehn https://codereview.chromium.org/1642023007/diff/20001/third_party/WebKit/public/platform/WebProcessMemoryDump.h File third_party/WebKit/public/platform/WebProcessMemoryDump.h (right): https://codereview.chromium.org/1642023007/diff/20001/third_party/WebKit/public/platform/WebProcessMemoryDump.h#newcode15 third_party/WebKit/public/platform/WebProcessMemoryDump.h:15: namespace base { Was the dependency from public/platofrm/ ...
4 years, 10 months ago (2016-01-29 08:57:29 UTC) #5
esprehn
Yes public/platform can depend on base.
4 years, 10 months ago (2016-01-29 09:29:51 UTC) #6
tkent
On 2016/01/29 at 09:29:51, esprehn wrote: > Yes public/platform can depend on base. Thanks. LGTM
4 years, 10 months ago (2016-01-29 11:02:39 UTC) #7
haraken
LGTM https://codereview.chromium.org/1642023007/diff/20001/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.h File third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.h (right): https://codereview.chromium.org/1642023007/diff/20001/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.h#newcode13 third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.h:13: #include "wtf/ThreadingPrimitives.h" This wouldn't be needed. https://codereview.chromium.org/1642023007/diff/20001/third_party/WebKit/public/platform/WebProcessMemoryDump.h File ...
4 years, 10 months ago (2016-01-29 14:06:53 UTC) #9
hajimehoshi
Thank you! https://codereview.chromium.org/1642023007/diff/20001/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.h File third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.h (right): https://codereview.chromium.org/1642023007/diff/20001/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.h#newcode13 third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.h:13: #include "wtf/ThreadingPrimitives.h" On 2016/01/29 14:06:52, haraken wrote: ...
4 years, 10 months ago (2016-02-01 06:19:35 UTC) #10
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1642023007/diff/40001/content/child/web_process_memory_dump_impl.h File content/child/web_process_memory_dump_impl.h (right): https://codereview.chromium.org/1642023007/diff/40001/content/child/web_process_memory_dump_impl.h#newcode78 content/child/web_process_memory_dump_impl.h:78: base::trace_event::ProcessMemoryDump* getProcessMemoryDump() override; The only weird thing here is ...
4 years, 10 months ago (2016-02-01 13:50:00 UTC) #12
kinuko
content/ lgtm (for Primiano's comment I'd defer the decision to him/you)
4 years, 10 months ago (2016-02-01 14:41:29 UTC) #13
hajimehoshi
Thank you! PTAL esprehn: This change adds '+base/trace_event' to public/platform/DEPS to include base/trace_event header files ...
4 years, 10 months ago (2016-02-02 08:44:44 UTC) #14
esprehn
lgtm
4 years, 10 months ago (2016-02-02 12:24:41 UTC) #15
Primiano Tucci (use gerrit)
LGTM from my side, looks better now. But you could probably make the function non-partition-alloc ...
4 years, 10 months ago (2016-02-02 12:30:00 UTC) #16
esprehn
On 2016/02/02 at 12:30:00, primiano wrote: > ... > https://codereview.chromium.org/1642023007/diff/40001/third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.h#newcode46 > third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.h:46: bool m_isHeapProfilingEnabled; > ...
4 years, 10 months ago (2016-02-02 12:35:29 UTC) #17
Primiano Tucci (use gerrit)
On 2016/02/02 12:35:29, esprehn wrote: > If you use the non-deprecated UI (change it in ...
4 years, 10 months ago (2016-02-02 14:38:23 UTC) #18
hajimehoshi
Thank you! https://codereview.chromium.org/1642023007/diff/60001/content/child/web_process_memory_dump_impl.cc File content/child/web_process_memory_dump_impl.cc (right): https://codereview.chromium.org/1642023007/diff/60001/content/child/web_process_memory_dump_impl.cc#newcode178 content/child/web_process_memory_dump_impl.cc:178: process_memory_dump_->AddHeapDump("partition_alloc", heap_dump); On 2016/02/02 12:29:59, Primiano Tucci ...
4 years, 10 months ago (2016-02-03 08:20:26 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1642023007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1642023007/80001
4 years, 10 months ago (2016-02-03 08:20:48 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-03 09:52:16 UTC) #23
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 09:53:17 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7e94fbc7dd28ce78aa12234b93bc52052f243448
Cr-Commit-Position: refs/heads/master@{#373204}

Powered by Google App Engine
This is Rietveld 408576698