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

Issue 2940003002: Add pipe implementation for OOP memory logging (Closed)

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

Description

Add pipe implementation for OOP memory logging These pipes are not currently hooked up. The sender pipe just connects to a known Windows named pipe and has a send capability. The receiver has a server that waits on Windows I/O completion ports for connections, then associates those connections with a receiver pipe. We will investigate converting this to a Mojo EDK pipe in a second phase. The pipes will need very different implementations per-platform, but we won't need to switch them. As a result, I put the Windows implementation in _win.* files, but didn't do any virtual base classes or anything and just named the classes without the Win suffix. In my previous implementation I did some more separation that I didn't find gave any more flexibility. BUG=733336 Review-Url: https://codereview.chromium.org/2940003002 Cr-Commit-Position: refs/heads/master@{#479927} Committed: https://chromium.googlesource.com/chromium/src/+/32f79a03c84b1be1ab5f1216112a1658fd864a54

Patch Set 1 #

Patch Set 2 : Explicit #

Total comments: 29

Patch Set 3 : Comments #

Patch Set 4 : Comments #

Total comments: 1

Patch Set 5 : Comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+547 lines, -12 lines) Patch
M chrome/common/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/common/profiling/BUILD.gn View 1 1 chunk +9 lines, -12 lines 0 comments Download
A chrome/common/profiling/memlog_sender_pipe.h View 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/common/profiling/memlog_sender_pipe_win.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/common/profiling/memlog_sender_pipe_win.cc View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/common/profiling/memlog_stream.h View 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/common/profiling/memlog_stream.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/profiling/BUILD.gn View 1 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/profiling/memlog_receiver_pipe_server_win.h View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A chrome/profiling/memlog_receiver_pipe_server_win.cc View 1 2 3 1 chunk +84 lines, -0 lines 0 comments Download
A chrome/profiling/memlog_receiver_pipe_win.h View 1 1 chunk +90 lines, -0 lines 0 comments Download
A chrome/profiling/memlog_receiver_pipe_win.cc View 1 1 chunk +119 lines, -0 lines 0 comments Download
A chrome/profiling/memlog_stream_receiver.h View 1 1 chunk +32 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 40 (19 generated)
brettw
3 years, 6 months ago (2017-06-15 20:41:54 UTC) #3
brettw
+some people CC
3 years, 6 months ago (2017-06-15 20:58:33 UTC) #6
brettw
3 years, 6 months ago (2017-06-15 20:58:48 UTC) #7
awong
didn't finish reviewing, but unclear I can finish before I have to go for the ...
3 years, 6 months ago (2017-06-15 21:32:47 UTC) #9
awong
Can you add brief class description comments? https://codereview.chromium.org/2940003002/diff/20001/chrome/profiling/memlog_receiver_pipe_win.cc File chrome/profiling/memlog_receiver_pipe_win.cc (right): https://codereview.chromium.org/2940003002/diff/20001/chrome/profiling/memlog_receiver_pipe_win.cc#newcode112 chrome/profiling/memlog_receiver_pipe_win.cc:112: base::BindOnce(&MemlogStreamReceiver::OnStreamComplete, receiver_)); ...
3 years, 6 months ago (2017-06-15 21:37:24 UTC) #10
awong
LGTM Almost everything I have fits in nice to have. Since I'm out until monday, ...
3 years, 6 months ago (2017-06-15 21:41:59 UTC) #11
Boris Vidolov
A couple comments for the conditional compiling for WIN https://codereview.chromium.org/2940003002/diff/20001/chrome/common/profiling/memlog_sender_pipe.h File chrome/common/profiling/memlog_sender_pipe.h (right): https://codereview.chromium.org/2940003002/diff/20001/chrome/common/profiling/memlog_sender_pipe.h#newcode10 chrome/common/profiling/memlog_sender_pipe.h:10: ...
3 years, 6 months ago (2017-06-15 21:51:00 UTC) #12
brettw
https://codereview.chromium.org/2940003002/diff/20001/chrome/common/profiling/memlog_sender_pipe.h File chrome/common/profiling/memlog_sender_pipe.h (right): https://codereview.chromium.org/2940003002/diff/20001/chrome/common/profiling/memlog_sender_pipe.h#newcode10 chrome/common/profiling/memlog_sender_pipe.h:10: #if defined(OS_WIN) On 2017/06/15 21:50:59, Boris Vidolov wrote: > ...
3 years, 6 months ago (2017-06-15 22:12:22 UTC) #15
brettw
Comments
3 years, 6 months ago (2017-06-15 22:13:13 UTC) #16
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/2940003002/40001
3 years, 6 months ago (2017-06-15 22:13:50 UTC) #19
Boris Vidolov
https://codereview.chromium.org/2940003002/diff/20001/chrome/common/profiling/memlog_sender_pipe_win.cc File chrome/common/profiling/memlog_sender_pipe_win.cc (right): https://codereview.chromium.org/2940003002/diff/20001/chrome/common/profiling/memlog_sender_pipe_win.cc#newcode32 chrome/common/profiling/memlog_sender_pipe_win.cc:32: handle_ = ::CreateFile(pipe_name.c_str(), GENERIC_READ | GENERIC_WRITE, 0, Is it ...
3 years, 6 months ago (2017-06-15 22:25:45 UTC) #20
brettw
Comments
3 years, 6 months ago (2017-06-15 22:52:19 UTC) #22
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/2940003002/60001
3 years, 6 months ago (2017-06-15 22:52:44 UTC) #25
brettw
https://codereview.chromium.org/2940003002/diff/20001/chrome/common/profiling/memlog_sender_pipe_win.cc File chrome/common/profiling/memlog_sender_pipe_win.cc (right): https://codereview.chromium.org/2940003002/diff/20001/chrome/common/profiling/memlog_sender_pipe_win.cc#newcode32 chrome/common/profiling/memlog_sender_pipe_win.cc:32: handle_ = ::CreateFile(pipe_name.c_str(), GENERIC_READ | GENERIC_WRITE, 0, It is ...
3 years, 6 months ago (2017-06-15 22:53:10 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/480245) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-15 22:59:40 UTC) #28
Boris Vidolov
lgtm Only minor comments. https://codereview.chromium.org/2940003002/diff/60001/chrome/common/profiling/memlog_sender_pipe_win.cc File chrome/common/profiling/memlog_sender_pipe_win.cc (right): https://codereview.chromium.org/2940003002/diff/60001/chrome/common/profiling/memlog_sender_pipe_win.cc#newcode42 chrome/common/profiling/memlog_sender_pipe_win.cc:42: ::GetTickCount64() < begin_ticks + kMaxWaitMS); ...
3 years, 6 months ago (2017-06-15 23:26:34 UTC) #29
brettw
Comment
3 years, 6 months ago (2017-06-15 23:39:22 UTC) #30
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/2940003002/80001
3 years, 6 months ago (2017-06-15 23:39:45 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/233087) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-15 23:46:18 UTC) #35
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/2940003002/80001
3 years, 6 months ago (2017-06-16 01:17:56 UTC) #37
commit-bot: I haz the power
3 years, 6 months ago (2017-06-16 02:31:11 UTC) #40
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/32f79a03c84b1be1ab5f1216112a...

Powered by Google App Engine
This is Rietveld 408576698