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

Issue 15082004: Adds chrome.memoryBenchmarking.heapProfilerDump for the browser process. (Closed)

Created:
7 years, 7 months ago by bulach
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, chromium-apps-reviews_chromium.org, Aaron Boodman
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Adds chrome.memoryBenchmarking.heapProfilerDump for the browser process. This function will be used in conjunction with --enable-memory-benchmarking switch in order to obtain TCMalloc's heap dumps. BUG=239836 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202087

Patch Set 1 : Patch #

Total comments: 11

Patch Set 2 : piman's comments #

Patch Set 3 : palmer's comments #

Total comments: 3

Patch Set 4 : Removes return value #

Total comments: 17

Patch Set 5 : Comments #

Patch Set 6 : Merged after dai's revert. #

Total comments: 4

Patch Set 7 : nit from piman #

Patch Set 8 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -17 lines) Patch
A content/browser/renderer_host/memory_benchmark_message_filter.h View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A content/browser/renderer_host/memory_benchmark_message_filter.cc View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M content/common/content_message_generator.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A + content/common/memory_benchmark_messages.h View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/memory_benchmarking_extension.cc View 1 2 3 4 5 6 4 chunks +20 lines, -14 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
bulach
dmikurube: as we chatted :) piman: this extends the patch you reviewed at https://chromiumcodereview.appspot.com/12211008, need ...
7 years, 7 months ago (2013-05-10 17:57:40 UTC) #1
piman
https://codereview.chromium.org/15082004/diff/2001/content/browser/renderer_host/memory_benchmark_message_filter.cc File content/browser/renderer_host/memory_benchmark_message_filter.cc (right): https://codereview.chromium.org/15082004/diff/2001/content/browser/renderer_host/memory_benchmark_message_filter.cc#newcode41 content/browser/renderer_host/memory_benchmark_message_filter.cc:41: #if defined(USE_TCMALLOC) I think we need to make sure ...
7 years, 7 months ago (2013-05-10 18:13:52 UTC) #2
palmer
https://codereview.chromium.org/15082004/diff/2001/content/browser/renderer_host/memory_benchmark_message_filter.cc File content/browser/renderer_host/memory_benchmark_message_filter.cc (right): https://codereview.chromium.org/15082004/diff/2001/content/browser/renderer_host/memory_benchmark_message_filter.cc#newcode41 content/browser/renderer_host/memory_benchmark_message_filter.cc:41: #if defined(USE_TCMALLOC) > I think we need to make ...
7 years, 7 months ago (2013-05-10 18:42:17 UTC) #3
bulach
thanks both! comments addressed, but I think I should clarify: this is sending file *name*, ...
7 years, 7 months ago (2013-05-10 18:46:03 UTC) #4
bulach
https://codereview.chromium.org/15082004/diff/2001/content/common/memory_benchmark_messages.h File content/common/memory_benchmark_messages.h (right): https://codereview.chromium.org/15082004/diff/2001/content/common/memory_benchmark_messages.h#newcode15 content/common/memory_benchmark_messages.h:15: std::string /* dump file name */) On 2013/05/10 18:42:17, ...
7 years, 7 months ago (2013-05-10 18:47:30 UTC) #5
bulach
cool, I addressed palmer's comments in patchset #3, ptal. now there'll be no entry points ...
7 years, 7 months ago (2013-05-10 19:15:54 UTC) #6
palmer
https://codereview.chromium.org/15082004/diff/20001/content/renderer/memory_benchmarking_extension.cc File content/renderer/memory_benchmarking_extension.cc (right): https://codereview.chromium.org/15082004/diff/20001/content/renderer/memory_benchmarking_extension.cc#newcode73 content/renderer/memory_benchmarking_extension.cc:73: ::HeapProfilerDumpWithFileName(reason.c_str(), So, the renderer asks the browser for a ...
7 years, 7 months ago (2013-05-10 19:53:53 UTC) #7
Dai Mikurube (NOT FULLTIME)
Thanks for working on it, bulach. It's basically looks good to me. Just supplemental information ...
7 years, 7 months ago (2013-05-10 20:41:30 UTC) #8
bulach
On 2013/05/10 20:41:30, Dai Mikurube wrote: > Thanks for working on it, bulach. It's basically ...
7 years, 7 months ago (2013-05-13 09:19:36 UTC) #9
palmer
OK, so the reason this code works is that you *do* use --no-sandbox. Thinking about ...
7 years, 7 months ago (2013-05-13 18:17:04 UTC) #10
piman
LGTM from my pov. The file path sent to the renderer isn't sent again to ...
7 years, 7 months ago (2013-05-13 19:36:41 UTC) #11
bulach
thanks both! palmer: on android, we're running on rooted devices, and then the test harness ...
7 years, 7 months ago (2013-05-13 20:23:08 UTC) #12
palmer
Sounds OK. LGTM. Thanks for explaining everything.
7 years, 7 months ago (2013-05-13 20:36:31 UTC) #13
Dai Mikurube (NOT FULLTIME)
lgtm.
7 years, 7 months ago (2013-05-14 10:48:45 UTC) #14
Dai Mikurube (NOT FULLTIME)
https://codereview.chromium.org/15082004/diff/20001/content/renderer/memory_benchmarking_extension.cc File content/renderer/memory_benchmarking_extension.cc (right): https://codereview.chromium.org/15082004/diff/20001/content/renderer/memory_benchmarking_extension.cc#newcode71 content/renderer/memory_benchmarking_extension.cc:71: if (reason == "browser") Ahh, sorry, I overlooked the ...
7 years, 7 months ago (2013-05-14 20:15:08 UTC) #15
bulach
On 2013/05/14 20:15:08, Dai Mikurube wrote: > https://codereview.chromium.org/15082004/diff/20001/content/renderer/memory_benchmarking_extension.cc > File content/renderer/memory_benchmarking_extension.cc (right): > > https://codereview.chromium.org/15082004/diff/20001/content/renderer/memory_benchmarking_extension.cc#newcode71 ...
7 years, 7 months ago (2013-05-15 08:05:17 UTC) #16
Dai Mikurube (NOT FULLTIME)
On 2013/05/15 08:05:17, bulach wrote: > On 2013/05/14 20:15:08, Dai Mikurube wrote: > > > ...
7 years, 7 months ago (2013-05-15 08:25:13 UTC) #17
bulach
sorry about the churn! I chatted with dai, and given the other Telemetry patch: https://codereview.chromium.org/15093008/ ...
7 years, 7 months ago (2013-05-15 09:50:29 UTC) #18
Dai Mikurube (NOT FULLTIME)
Thanks for working on it. Some comments. https://codereview.chromium.org/15082004/diff/35001/content/browser/renderer_host/memory_benchmark_message_filter.cc File content/browser/renderer_host/memory_benchmark_message_filter.cc (right): https://codereview.chromium.org/15082004/diff/35001/content/browser/renderer_host/memory_benchmark_message_filter.cc#newcode7 content/browser/renderer_host/memory_benchmark_message_filter.cc:7: #include "base/files/file_path.h" ...
7 years, 7 months ago (2013-05-15 10:24:04 UTC) #19
Dai Mikurube (NOT FULLTIME)
Sorry, one more comment. And in addition, we may want to revert changes in tcmalloc's ...
7 years, 7 months ago (2013-05-15 10:36:55 UTC) #20
bulach
thanks dai! all comments addressed, ptal. would you like to drover that other patch you ...
7 years, 7 months ago (2013-05-15 10:58:29 UTC) #21
Dai Mikurube (NOT FULLTIME)
LGTM! :) And, I'll be reverting r182659 in https://codereview.chromium.org/14773032/. (tree closed) https://codereview.chromium.org/15082004/diff/35001/content/renderer/memory_benchmarking_extension.cc File content/renderer/memory_benchmarking_extension.cc (right): ...
7 years, 7 months ago (2013-05-15 12:04:20 UTC) #22
Dai Mikurube (NOT FULLTIME)
fyi: revert is landed at http://crrev.com/200250
7 years, 7 months ago (2013-05-15 13:17:16 UTC) #23
bulach
thanks dai! merged with your revert. I'll wait for a final look from palmer / ...
7 years, 7 months ago (2013-05-15 13:29:06 UTC) #24
palmer
> I'll wait for a final look from palmer / piman before landing. Thanks! Looking ...
7 years, 7 months ago (2013-05-15 19:02:20 UTC) #25
piman
LGTM+nit https://codereview.chromium.org/15082004/diff/59001/content/renderer/memory_benchmarking_extension.cc File content/renderer/memory_benchmarking_extension.cc (right): https://codereview.chromium.org/15082004/diff/59001/content/renderer/memory_benchmarking_extension.cc#newcode62 content/renderer/memory_benchmarking_extension.cc:62: } nit: you inlined this function into HeapProfilerDump. ...
7 years, 7 months ago (2013-05-15 19:18:54 UTC) #26
palmer
https://codereview.chromium.org/15082004/diff/59001/content/renderer/memory_benchmarking_extension.cc File content/renderer/memory_benchmarking_extension.cc (right): https://codereview.chromium.org/15082004/diff/59001/content/renderer/memory_benchmarking_extension.cc#newcode59 content/renderer/memory_benchmarking_extension.cc:59: static void HeapProfilerDumpBrowser(const std::string& reason) { What is the ...
7 years, 7 months ago (2013-05-15 20:27:50 UTC) #27
Dai Mikurube (NOT FULLTIME)
Supplemental information for palmer: https://codereview.chromium.org/15082004/diff/59001/content/renderer/memory_benchmarking_extension.cc File content/renderer/memory_benchmarking_extension.cc (right): https://codereview.chromium.org/15082004/diff/59001/content/renderer/memory_benchmarking_extension.cc#newcode59 content/renderer/memory_benchmarking_extension.cc:59: static void HeapProfilerDumpBrowser(const std::string& reason) ...
7 years, 7 months ago (2013-05-15 22:36:07 UTC) #28
bulach
https://codereview.chromium.org/15082004/diff/59001/content/renderer/memory_benchmarking_extension.cc File content/renderer/memory_benchmarking_extension.cc (right): https://codereview.chromium.org/15082004/diff/59001/content/renderer/memory_benchmarking_extension.cc#newcode62 content/renderer/memory_benchmarking_extension.cc:62: } On 2013/05/15 19:18:54, piman wrote: > nit: you ...
7 years, 7 months ago (2013-05-16 08:29:09 UTC) #29
bulach
palmer: ping? :)
7 years, 7 months ago (2013-05-21 08:25:25 UTC) #30
palmer
On 2013/05/21 08:25:25, bulach wrote: > palmer: ping? :) Oops, sorry. LGTM.
7 years, 7 months ago (2013-05-24 00:04:00 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/15082004/74001
7 years, 7 months ago (2013-05-24 09:06:29 UTC) #32
commit-bot: I haz the power
7 years, 7 months ago (2013-05-24 15:16:35 UTC) #33
Message was sent while issue was closed.
Change committed as 202087

Powered by Google App Engine
This is Rietveld 408576698