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

Issue 2949703002: Add OOP memory logging allocator shim (Closed)

Created:
3 years, 6 months ago by brettw
Modified:
3 years, 6 months ago
CC:
chromium-reviews, ssid, Primiano Tucci (use gerrit), DmitrySkiba
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add OOP memory logging allocator shim The allocator shim is temporary until the base on can be refactored. The rest of the machinery for out-of-process heap profiling is hooked up in this patch. Review-Url: https://codereview.chromium.org/2949703002 Cr-Commit-Position: refs/heads/master@{#481009} Committed: https://chromium.googlesource.com/chromium/src/+/7c54a077d28ab2547386556e4c23c6714327a49b

Patch Set 1 #

Patch Set 2 : Multi-dll #

Total comments: 10

Patch Set 3 : Review comments #

Patch Set 4 : More comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -0 lines) Patch
M chrome/app/chrome_main.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/common/profiling/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/common/profiling/memlog_allocator_shim.h View 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/common/profiling/memlog_allocator_shim.cc View 1 2 3 1 chunk +236 lines, -0 lines 1 comment Download
A chrome/common/profiling/memlog_sender.h View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/common/profiling/memlog_sender.cc View 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/profiling/profiling_main.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
brettw
3 years, 6 months ago (2017-06-20 19:48:18 UTC) #2
brettw
3 years, 6 months ago (2017-06-20 19:50:00 UTC) #7
awong
LGTM w/ nits All comments are effectively nits or documentation changes. https://codereview.chromium.org/2949703002/diff/20001/chrome/common/profiling/memlog_allocator_shim.cc File chrome/common/profiling/memlog_allocator_shim.cc (right): ...
3 years, 6 months ago (2017-06-20 21:01:47 UTC) #8
awong
actually...one major question... https://codereview.chromium.org/2949703002/diff/20001/chrome/common/profiling/memlog_allocator_shim.cc File chrome/common/profiling/memlog_allocator_shim.cc (right): https://codereview.chromium.org/2949703002/diff/20001/chrome/common/profiling/memlog_allocator_shim.cc#newcode61 chrome/common/profiling/memlog_allocator_shim.cc:61: g_send_buffers[bin_to_use].Send(data, size); How does this handle ...
3 years, 6 months ago (2017-06-20 21:03:11 UTC) #9
brettw
Review comments
3 years, 6 months ago (2017-06-20 21:15:04 UTC) #10
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/2949703002/40001
3 years, 6 months ago (2017-06-20 21:15:15 UTC) #13
brettw
More comments
3 years, 6 months ago (2017-06-20 21:22:11 UTC) #15
brettw
https://codereview.chromium.org/2949703002/diff/20001/chrome/common/profiling/memlog_allocator_shim.cc File chrome/common/profiling/memlog_allocator_shim.cc (right): https://codereview.chromium.org/2949703002/diff/20001/chrome/common/profiling/memlog_allocator_shim.cc#newcode56 chrome/common/profiling/memlog_allocator_shim.cc:56: // "address" is the address in question, which is ...
3 years, 6 months ago (2017-06-20 21:22:28 UTC) #18
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/2949703002/60001
3 years, 6 months ago (2017-06-20 21:22:47 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/7c54a077d28ab2547386556e4c23c6714327a49b
3 years, 6 months ago (2017-06-20 23:11:06 UTC) #22
Primiano Tucci (use gerrit)
3 years, 6 months ago (2017-06-21 14:11:29 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/2949703002/diff/60001/chrome/common/profiling...
File chrome/common/profiling/memlog_allocator_shim.cc (right):

https://codereview.chromium.org/2949703002/diff/60001/chrome/common/profiling...
chrome/common/profiling/memlog_allocator_shim.cc:188: char
message[max_message_size];
Doesn't this have to be declared  ALIGNAS(sizeof(uint64_t)) ? 
If this is not aligned all the assignment operations below in lines 209-217 will
very silently be way slower on x86/64 and eventualy SIGBUS the day that you use
this on arm.

Powered by Google App Engine
This is Rietveld 408576698