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

Issue 8342017: Add UMA reports for Linux nacl_helper startup status (Closed)

Created:
9 years, 2 months ago by Roland McGrath
Modified:
9 years, 2 months ago
Reviewers:
Nick Bray, brettw, agl, Brad Chen
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, native-client-reviews_googlegroups.com, jam, dpranke-watch+content_chromium.org
Visibility:
Public.

Description

Add UMA reports for Linux nacl_helper startup status This extends the Linux Zygote Fork request protocol so the Zygote process can return a UMA histogram enumeration report to be made, along with the PID. In the Zygote process, the ZygoteForkDelegate decides what to report. It gets to choose an initial report to make, which happens on the first fork request that doesn't have its own report to make (as a generic fork for a renderer won't). It also gets to choose a report to make with each individual fork request. We then use this in the NaClForkDelegate to report status about the attempt to start up the nacl_helper process. We both make an initial report, so we can collect this information from every Chrome instance, and make a report repeating the same information on each NaCl process fork request, so that we can correlate the nacl_helper startup success/failure rates with sessions that actually make use of NaCl. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2361 TEST= looked at about:histograms/NaCl R=agl@chromium.org,bradchen@google.com,ncbray@google.com Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106529

Patch Set 1 #

Total comments: 8

Patch Set 2 : review nits #

Total comments: 2

Patch Set 3 : rebased; review nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -28 lines) Patch
M chrome/common/nacl_fork_delegate_linux.h View 1 chunk +19 lines, -2 lines 0 comments Download
M chrome/nacl/nacl_fork_delegate_linux.cc View 1 3 chunks +36 lines, -12 lines 0 comments Download
M content/browser/zygote_host_linux.cc View 1 2 2 chunks +34 lines, -1 line 0 comments Download
M content/browser/zygote_main_linux.cc View 1 2 6 chunks +50 lines, -7 lines 0 comments Download
M content/common/zygote_fork_delegate_linux.h View 1 2 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Roland McGrath
9 years, 2 months ago (2011-10-18 22:30:02 UTC) #1
agl
LGTM http://codereview.chromium.org/8342017/diff/1/chrome/nacl/nacl_fork_delegate_linux.cc File chrome/nacl/nacl_fork_delegate_linux.cc (right): http://codereview.chromium.org/8342017/diff/1/chrome/nacl/nacl_fork_delegate_linux.cc#newcode65 chrome/nacl/nacl_fork_delegate_linux.cc:65: if (base::LaunchProcess(cmd_line.argv(), options, NULL)) This looks so much ...
9 years, 2 months ago (2011-10-19 16:17:27 UTC) #2
Roland McGrath
http://codereview.chromium.org/8342017/diff/1/chrome/nacl/nacl_fork_delegate_linux.cc File chrome/nacl/nacl_fork_delegate_linux.cc (right): http://codereview.chromium.org/8342017/diff/1/chrome/nacl/nacl_fork_delegate_linux.cc#newcode65 chrome/nacl/nacl_fork_delegate_linux.cc:65: if (base::LaunchProcess(cmd_line.argv(), options, NULL)) On 2011/10/19 16:17:27, agl wrote: ...
9 years, 2 months ago (2011-10-19 18:34:15 UTC) #3
Roland McGrath
Oops, just noticed I need a content/{browser,common}/OWNERS member. Brett, PTAL.
9 years, 2 months ago (2011-10-19 19:53:04 UTC) #4
brettw
9 years, 2 months ago (2011-10-20 06:07:09 UTC) #5
LGTM, I didn't look at the details. Some style nits:

http://codereview.chromium.org/8342017/diff/6001/content/browser/zygote_host_...
File content/browser/zygote_host_linux.cc (right):

http://codereview.chromium.org/8342017/diff/6001/content/browser/zygote_host_...
content/browser/zygote_host_linux.cc:296: if (!uma_histogram ||
uma_histogram->histogram_name() != uma_name)
Use {} for multi-line (even if it's just one stmt).

http://codereview.chromium.org/8342017/diff/6001/content/browser/zygote_main_...
File content/browser/zygote_main_linux.cc (right):

http://codereview.chromium.org/8342017/diff/6001/content/browser/zygote_main_...
content/browser/zygote_main_linux.cc:517: (ssize_t) reply_pickle.size())
Use static_cast instead of C-style casts.

Powered by Google App Engine
This is Rietveld 408576698