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

Issue 611393002: Rationalize and fix chromium android linker histogram recording. (Closed)

Created:
6 years, 2 months ago by simonb (inactive)
Modified:
6 years, 2 months ago
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Rationalize and fix chromium android linker histogram recording. Replace histogram recording for devices where the chromium android linker is enabled with the following: ChromiumAndroidLinker.BrowserStates Whether relro sharing was attempted for the browser process, and if attempted, whether it succeeded. (0=normal load, 1=low memory load with shared relro, 2=low memory load used backoff so no shared relro) ChromiumAndroidLinker.RendererStates Whether relro sharing was attempted for a renderer process, and if attempted, whether it succeeded. (0=load with shared relro, 1=load used backoff so no shared relro, 2=shared relro not attempted) If the chromium android linker is not enabled, none of the above histograms is recorded. BUG=419010 Committed: https://crrev.com/7ae383a91f3906a9b2459ae92d141d341b1d0c73 Cr-Commit-Position: refs/heads/master@{#299291}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Rewrite for clearer histogram recording. #

Total comments: 6

Patch Set 3 : Update for review feedback. #

Patch Set 4 : Update for review feedback. #

Patch Set 5 : Move renderer UMA update call. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -43 lines) Patch
M base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java View 1 6 chunks +40 lines, -11 lines 0 comments Download
M base/android/java/src/org/chromium/base/library_loader/Linker.java View 1 4 chunks +3 lines, -20 lines 0 comments Download
M base/android/library_loader/library_loader_hooks.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M base/android/library_loader/library_loader_hooks.cc View 1 2 chunks +71 lines, -12 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessService.java View 1 3 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +49 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (7 generated)
simonb (inactive)
6 years, 2 months ago (2014-09-30 16:15:56 UTC) #2
simonb (inactive)
6 years, 2 months ago (2014-10-01 11:21:45 UTC) #4
rmcilroy
Looks good to me overall. I'm not sure if RenderViewImpl::Initialize is the best place to ...
6 years, 2 months ago (2014-10-01 12:14:43 UTC) #5
simonb (inactive)
Thanks for the review. I've cleaned up and rewritten the change somewhat to produce clearer ...
6 years, 2 months ago (2014-10-02 15:15:30 UTC) #6
rmcilroy
Looks cleaner to me. lgtm, thanks.
6 years, 2 months ago (2014-10-02 15:49:30 UTC) #7
Andrew Hayden (chromium.org)
LGTM!
6 years, 2 months ago (2014-10-02 15:55:30 UTC) #8
simonb (inactive)
+jamesr for content/renderer portion +isherman for tools/metrics portion Thanks.
6 years, 2 months ago (2014-10-02 17:07:54 UTC) #10
jamesr
https://codereview.chromium.org/611393002/diff/20001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/611393002/diff/20001/content/renderer/render_view_impl.cc#newcode829 content/renderer/render_view_impl.cc:829: base::android::RecordChromiumAndroidLinkerRendererHistogram(); why is this call here? this function is ...
6 years, 2 months ago (2014-10-02 20:26:48 UTC) #11
Ilya Sherman
https://codereview.chromium.org/611393002/diff/20001/base/android/library_loader/library_loader_hooks.cc File base/android/library_loader/library_loader_hooks.cc (left): https://codereview.chromium.org/611393002/diff/20001/base/android/library_loader/library_loader_hooks.cc#oldcode48 base/android/library_loader/library_loader_hooks.cc:48: is_low_memory_device); Please mark the corresponding histograms as <obsolete> https://codereview.chromium.org/611393002/diff/20001/base/android/library_loader/library_loader_hooks.cc ...
6 years, 2 months ago (2014-10-02 20:53:58 UTC) #12
simonb (inactive)
Thanks. Update in patch set 4. https://codereview.chromium.org/611393002/diff/20001/base/android/library_loader/library_loader_hooks.cc File base/android/library_loader/library_loader_hooks.cc (left): https://codereview.chromium.org/611393002/diff/20001/base/android/library_loader/library_loader_hooks.cc#oldcode48 base/android/library_loader/library_loader_hooks.cc:48: is_low_memory_device); On 2014/10/02 ...
6 years, 2 months ago (2014-10-03 11:51:42 UTC) #13
Ilya Sherman
Histograms LGTM, thanks.
6 years, 2 months ago (2014-10-06 21:38:18 UTC) #14
jamesr
On 2014/10/03 11:51:42, simonb wrote: > Thanks. Update in patch set 4. > > https://codereview.chromium.org/611393002/diff/20001/base/android/library_loader/library_loader_hooks.cc ...
6 years, 2 months ago (2014-10-06 21:43:17 UTC) #15
simonb (inactive)
On 2014/10/06 21:43:17, jamesr wrote: > ... > https://codereview.chromium.org/611393002/diff/20001/content/renderer/render_view_impl.cc#newcode829 > > content/renderer/render_view_impl.cc:829: > > base::android::RecordChromiumAndroidLinkerRendererHistogram(); ...
6 years, 2 months ago (2014-10-08 12:07:08 UTC) #16
simonb (inactive)
On 2014/10/08 12:07:08, simonb wrote: > ... > > Moved to RendererMain, patch set 5. ...
6 years, 2 months ago (2014-10-10 08:04:29 UTC) #17
jamesr
Thanks, lgtm.
6 years, 2 months ago (2014-10-10 23:03:35 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/611393002/80001
6 years, 2 months ago (2014-10-13 10:18:32 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/17207)
6 years, 2 months ago (2014-10-13 10:26:09 UTC) #22
simonb (inactive)
+benm, for review of: content/public/android/java/src/org/chromium/content/app/ChildProcessService.java
6 years, 2 months ago (2014-10-13 10:32:45 UTC) #24
benm (inactive)
On 2014/10/13 10:32:45, simonb wrote: > +benm, for review of: > content/public/android/java/src/org/chromium/content/app/ChildProcessService.java content/public/android/java/src/org/chromium/content/app/ChildProcessService.java LGTM
6 years, 2 months ago (2014-10-13 10:46:58 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/611393002/80001
6 years, 2 months ago (2014-10-13 10:58:56 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 2 months ago (2014-10-13 13:22:53 UTC) #28
commit-bot: I haz the power
6 years, 2 months ago (2014-10-13 13:23:38 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7ae383a91f3906a9b2459ae92d141d341b1d0c73
Cr-Commit-Position: refs/heads/master@{#299291}

Powered by Google App Engine
This is Rietveld 408576698