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

Issue 2477513004: android: Record the memory size of the GSA process. (Closed)

Created:
4 years, 1 month ago by Benoit L
Modified:
4 years, 1 month ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

android: Record the memory size of the GSA process. Chrome connects to a bound service exposed by GSA, elevating its importance to the system (see the linked bug). This requirement is going away, and this CL is assessing the amount of memory wasted / saved this way. On a Nexus 5X, the cost of gathering this data has been measured (through Trace events) to be ~60ms of wall clock time (on a low-priority background thread), with ~2ms of CPU time on a little core. The data is gathered at most once per startup. BUG=614388 Committed: https://crrev.com/0d37cc58e86c456e635fc75681768303b13ced8e Cr-Commit-Position: refs/heads/master@{#430288}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments. #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 2

Patch Set 5 : . #

Patch Set 6 : Disable the test when GSA is not available. #

Total comments: 4

Patch Set 7 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -11 lines) Patch
M base/android/java/src/org/chromium/base/metrics/RecordHistogram.java View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/gsa/GSAServiceClient.java View 1 7 chunks +93 lines, -11 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/gsa/GSAServiceClientTest.java View 1 2 3 4 5 1 chunk +67 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
Benoit L
4 years, 1 month ago (2016-11-04 14:17:37 UTC) #2
Ted C
lgtm w/ some nits https://codereview.chromium.org/2477513004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/gsa/GSAServiceClient.java File chrome/android/java/src/org/chromium/chrome/browser/gsa/GSAServiceClient.java (right): https://codereview.chromium.org/2477513004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/gsa/GSAServiceClient.java#newcode73 chrome/android/java/src/org/chromium/chrome/browser/gsa/GSAServiceClient.java:73: if (msg.what == RESPONSE_UPDATE_SSB) { ...
4 years, 1 month ago (2016-11-04 16:47:56 UTC) #3
Benoit L
Thanks! +yfriedman for base/andtoid +asvitkine for histograms.xml https://codereview.chromium.org/2477513004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/gsa/GSAServiceClient.java File chrome/android/java/src/org/chromium/chrome/browser/gsa/GSAServiceClient.java (right): https://codereview.chromium.org/2477513004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/gsa/GSAServiceClient.java#newcode73 chrome/android/java/src/org/chromium/chrome/browser/gsa/GSAServiceClient.java:73: if (msg.what ...
4 years, 1 month ago (2016-11-04 17:20:58 UTC) #5
Alexei Svitkine (slow)
lgtm % optional suggestion https://codereview.chromium.org/2477513004/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2477513004/diff/60001/tools/metrics/histograms/histograms.xml#newcode56350 tools/metrics/histograms/histograms.xml:56350: +<histogram name="Search.GsaProcessMemoryPss" units="KB"> I feel ...
4 years, 1 month ago (2016-11-04 17:25:03 UTC) #8
Benoit L
+rmclilroy for base/android/java/src/org/chromium/base/metrics/RecordHistogram.java (Yaron is OOO) PTAL, thanks. https://codereview.chromium.org/2477513004/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2477513004/diff/60001/tools/metrics/histograms/histograms.xml#newcode56350 tools/metrics/histograms/histograms.xml:56350: +<histogram ...
4 years, 1 month ago (2016-11-07 13:43:11 UTC) #16
rmcilroy
base/ LGTM with two nits. https://codereview.chromium.org/2477513004/diff/100001/base/android/java/src/org/chromium/base/metrics/RecordHistogram.java File base/android/java/src/org/chromium/base/metrics/RecordHistogram.java (right): https://codereview.chromium.org/2477513004/diff/100001/base/android/java/src/org/chromium/base/metrics/RecordHistogram.java#newcode209 base/android/java/src/org/chromium/base/metrics/RecordHistogram.java:209: * Good for sizes ...
4 years, 1 month ago (2016-11-07 14:59:34 UTC) #17
Benoit L
Thanks! https://codereview.chromium.org/2477513004/diff/100001/base/android/java/src/org/chromium/base/metrics/RecordHistogram.java File base/android/java/src/org/chromium/base/metrics/RecordHistogram.java (right): https://codereview.chromium.org/2477513004/diff/100001/base/android/java/src/org/chromium/base/metrics/RecordHistogram.java#newcode209 base/android/java/src/org/chromium/base/metrics/RecordHistogram.java:209: * Good for sizes up to 500e6 bytes. ...
4 years, 1 month ago (2016-11-07 15:15:25 UTC) #18
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/2477513004/120001
4 years, 1 month ago (2016-11-07 15:15:50 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-07 16:27:37 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 16:42:51 UTC) #24
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0d37cc58e86c456e635fc75681768303b13ced8e
Cr-Commit-Position: refs/heads/master@{#430288}

Powered by Google App Engine
This is Rietveld 408576698