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

Issue 2224063002: Use persistent memory for receiving metrics from sub-processes. (Closed)

Created:
4 years, 4 months ago by bcwhite
Modified:
4 years, 4 months ago
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use persistent memory for receiving metrics from sub-processes. This allows metrics to survive and be collected even if a subprocess terminates before reporting. Only the GPU process is monitored with this CL but it should be trivial to add the remaining ones going forward. BUG=546019 Committed: https://crrev.com/b58a5fe78a1610d5c2667708cd235ab272614eec Cr-Commit-Position: refs/heads/master@{#413452}

Patch Set 1 #

Patch Set 2 : separate enable of tracking to not break with tests #

Patch Set 3 : rebased #

Total comments: 20

Patch Set 4 : rebased #

Patch Set 5 : addressed review comments by Alexei #

Total comments: 4

Patch Set 6 : create helper method; make test appear to be on UI thread #

Total comments: 4

Patch Set 7 : addressed final review comments by Alexei #

Patch Set 8 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -9 lines) Patch
M chrome/browser/metrics/subprocess_metrics_provider.h View 1 2 3 4 5 5 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/metrics/subprocess_metrics_provider.cc View 1 2 3 4 5 4 chunks +72 lines, -2 lines 0 comments Download
M chrome/browser/metrics/subprocess_metrics_provider_unittest.cc View 1 2 3 4 5 6 3 chunks +8 lines, -1 line 0 comments Download
M content/browser/browser_child_process_host_impl.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 3 4 5 6 7 6 chunks +53 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/browser_child_process_host.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 3 chunks +24 lines, -6 lines 0 comments Download

Messages

Total messages: 64 (44 generated)
bcwhite
4 years, 4 months ago (2016-08-08 20:53:49 UTC) #11
Alexei Svitkine (slow)
Sorry, I likely won't be able to take a look at this until Friday as ...
4 years, 4 months ago (2016-08-11 06:44:14 UTC) #29
Alexei Svitkine (slow)
https://codereview.chromium.org/2224063002/diff/120001/chrome/browser/metrics/subprocess_metrics_provider.cc File chrome/browser/metrics/subprocess_metrics_provider.cc (right): https://codereview.chromium.org/2224063002/diff/120001/chrome/browser/metrics/subprocess_metrics_provider.cc#newcode202 chrome/browser/metrics/subprocess_metrics_provider.cc:202: content::BrowserThread::PostTask( This seems overly complicated. I think you can ...
4 years, 4 months ago (2016-08-12 23:14:37 UTC) #30
bcwhite
https://codereview.chromium.org/2224063002/diff/120001/chrome/browser/metrics/subprocess_metrics_provider.cc File chrome/browser/metrics/subprocess_metrics_provider.cc (right): https://codereview.chromium.org/2224063002/diff/120001/chrome/browser/metrics/subprocess_metrics_provider.cc#newcode202 chrome/browser/metrics/subprocess_metrics_provider.cc:202: content::BrowserThread::PostTask( On 2016/08/12 23:14:36, Alexei Svitkine (very slow) wrote: ...
4 years, 4 months ago (2016-08-15 19:43:10 UTC) #33
Alexei Svitkine (slow)
https://codereview.chromium.org/2224063002/diff/120001/chrome/browser/metrics/subprocess_metrics_provider.h File chrome/browser/metrics/subprocess_metrics_provider.h (right): https://codereview.chromium.org/2224063002/diff/120001/chrome/browser/metrics/subprocess_metrics_provider.h#newcode41 chrome/browser/metrics/subprocess_metrics_provider.h:41: // the correct thread can break tests. On 2016/08/15 ...
4 years, 4 months ago (2016-08-18 07:21:19 UTC) #36
bcwhite
https://codereview.chromium.org/2224063002/diff/120001/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): https://codereview.chromium.org/2224063002/diff/120001/content/browser/browser_child_process_host_impl.cc#newcode183 content/browser/browser_child_process_host_impl.cc:183: /*readonly=*/false)); > > I don't think that would be ...
4 years, 4 months ago (2016-08-18 15:21:55 UTC) #37
Alexei Svitkine (slow)
https://codereview.chromium.org/2224063002/diff/120001/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): https://codereview.chromium.org/2224063002/diff/120001/content/browser/browser_child_process_host_impl.cc#newcode183 content/browser/browser_child_process_host_impl.cc:183: /*readonly=*/false)); On 2016/08/18 15:21:55, bcwhite wrote: > > > ...
4 years, 4 months ago (2016-08-18 15:57:28 UTC) #38
bcwhite
https://codereview.chromium.org/2224063002/diff/120001/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): https://codereview.chromium.org/2224063002/diff/120001/content/browser/browser_child_process_host_impl.cc#newcode183 content/browser/browser_child_process_host_impl.cc:183: /*readonly=*/false)); > Let me step back a bit. The ...
4 years, 4 months ago (2016-08-18 17:42:17 UTC) #39
Alexei Svitkine (slow)
Sorry for all the delays reviewing this. I was traveling yesterday and was at a ...
4 years, 4 months ago (2016-08-19 14:58:48 UTC) #40
Alexei Svitkine (slow)
https://codereview.chromium.org/2224063002/diff/120001/chrome/browser/metrics/subprocess_metrics_provider.h File chrome/browser/metrics/subprocess_metrics_provider.h (right): https://codereview.chromium.org/2224063002/diff/120001/chrome/browser/metrics/subprocess_metrics_provider.h#newcode41 chrome/browser/metrics/subprocess_metrics_provider.h:41: // the correct thread can break tests. On 2016/08/18 ...
4 years, 4 months ago (2016-08-19 15:10:51 UTC) #41
bcwhite
https://codereview.chromium.org/2224063002/diff/120001/chrome/browser/metrics/subprocess_metrics_provider.h File chrome/browser/metrics/subprocess_metrics_provider.h (right): https://codereview.chromium.org/2224063002/diff/120001/chrome/browser/metrics/subprocess_metrics_provider.h#newcode41 chrome/browser/metrics/subprocess_metrics_provider.h:41: // the correct thread can break tests. On 2016/08/19 ...
4 years, 4 months ago (2016-08-19 15:55:22 UTC) #45
Alexei Svitkine (slow)
LGTM, thanks! https://codereview.chromium.org/2224063002/diff/160001/content/browser/browser_child_process_host_impl.h File content/browser/browser_child_process_host_impl.h (right): https://codereview.chromium.org/2224063002/diff/160001/content/browser/browser_child_process_host_impl.h#newcode124 content/browser/browser_child_process_host_impl.h:124: // requires the process to have been ...
4 years, 4 months ago (2016-08-19 16:31:56 UTC) #46
bcwhite
https://codereview.chromium.org/2224063002/diff/160001/content/browser/browser_child_process_host_impl.h File content/browser/browser_child_process_host_impl.h (right): https://codereview.chromium.org/2224063002/diff/160001/content/browser/browser_child_process_host_impl.h#newcode124 content/browser/browser_child_process_host_impl.h:124: // requires the process to have been launched and ...
4 years, 4 months ago (2016-08-19 17:19:47 UTC) #49
bcwhite
avi@chromium.org: Please review changes in browser_child_process_host*
4 years, 4 months ago (2016-08-19 17:55:54 UTC) #52
Avi (use Gerrit)
lgtm
4 years, 4 months ago (2016-08-21 04:36:41 UTC) #53
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/2224063002/220001
4 years, 4 months ago (2016-08-22 12:53:14 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/255183)
4 years, 4 months ago (2016-08-22 12:55:24 UTC) #58
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/2224063002/240001
4 years, 4 months ago (2016-08-22 14:49:27 UTC) #61
commit-bot: I haz the power
Committed patchset #8 (id:240001)
4 years, 4 months ago (2016-08-22 16:26:15 UTC) #62
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 16:29:03 UTC) #64
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b58a5fe78a1610d5c2667708cd235ab272614eec
Cr-Commit-Position: refs/heads/master@{#413452}

Powered by Google App Engine
This is Rietveld 408576698