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

Issue 2486573003: memory coordinator: Add metrics for Android's onTrimMemory() (Closed)

Created:
4 years, 1 month ago by bashi
Modified:
4 years, 1 month ago
Reviewers:
haraken, chrisha, rkaplow, boliu
CC:
chromium-reviews, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

memory coordinator: Add metrics for Android's onTrimMemory() Record levels of onTrimMemory()[1]. Define separate histograms for each memory state so that we can examine the behavior of the memory coordinator. For example, the number of onTrimMemory() calls should be smaller in NORMAL state than THROTTLED/SUSPENDED states. [1] https://developer.android.com/reference/android/content/ComponentCallbacks2.html#onTrimMemory(int) Design doc: https://docs.google.com/document/d/1Mlx7q_8thkoQtg_C7-CNA_y0SxSK0yp_ja9Zs4HmcwU/edit#heading=h.7g1az9n5ec1m BUG=662772 Committed: https://crrev.com/d351969bdb53d2ecf8f61db2987280a826cca738 Cr-Commit-Position: refs/heads/master@{#431188}

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -0 lines) Patch
M content/browser/memory/memory_monitor_android.cc View 3 chunks +39 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/MemoryMonitorAndroid.java View 1 3 chunks +33 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (12 generated)
bashi
PTAL Other options would be having one histogram (called Memory.Coordinator.TrimMemoryLevel) and define an enum like: ...
4 years, 1 month ago (2016-11-08 09:33:10 UTC) #2
haraken
On 2016/11/08 09:33:10, bashi1 wrote: > PTAL > > Other options would be having one ...
4 years, 1 month ago (2016-11-08 10:56:22 UTC) #3
bashi
On 2016/11/08 10:56:22, haraken wrote: > On 2016/11/08 09:33:10, bashi1 wrote: > > PTAL > ...
4 years, 1 month ago (2016-11-09 23:38:54 UTC) #4
haraken
On 2016/11/09 23:38:54, bashi1 wrote: > On 2016/11/08 10:56:22, haraken wrote: > > On 2016/11/08 ...
4 years, 1 month ago (2016-11-10 01:44:09 UTC) #5
bashi
On 2016/11/10 01:44:09, haraken wrote: > On 2016/11/09 23:38:54, bashi1 wrote: > > On 2016/11/08 ...
4 years, 1 month ago (2016-11-10 01:55:09 UTC) #8
bashi
On 2016/11/10 01:55:09, bashi1 wrote: > On 2016/11/10 01:44:09, haraken wrote: > > On 2016/11/09 ...
4 years, 1 month ago (2016-11-10 03:09:55 UTC) #13
bashi
boliu@: could you review content/public/android?
4 years, 1 month ago (2016-11-10 03:11:07 UTC) #15
boliu
lgtm https://codereview.chromium.org/2486573003/diff/1/content/public/android/java/src/org/chromium/content/browser/MemoryMonitorAndroid.java File content/public/android/java/src/org/chromium/content/browser/MemoryMonitorAndroid.java (right): https://codereview.chromium.org/2486573003/diff/1/content/public/android/java/src/org/chromium/content/browser/MemoryMonitorAndroid.java#newcode19 content/public/android/java/src/org/chromium/content/browser/MemoryMonitorAndroid.java:19: class MemoryMonitorAndroid { nothing instantiates this class, right? ...
4 years, 1 month ago (2016-11-10 04:06:27 UTC) #16
bashi
Thanks! Also added a comment for registerComponentCallbacks(). https://codereview.chromium.org/2486573003/diff/1/content/public/android/java/src/org/chromium/content/browser/MemoryMonitorAndroid.java File content/public/android/java/src/org/chromium/content/browser/MemoryMonitorAndroid.java (right): https://codereview.chromium.org/2486573003/diff/1/content/public/android/java/src/org/chromium/content/browser/MemoryMonitorAndroid.java#newcode19 content/public/android/java/src/org/chromium/content/browser/MemoryMonitorAndroid.java:19: class MemoryMonitorAndroid ...
4 years, 1 month ago (2016-11-10 04:27:58 UTC) #17
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/2486573003/20001
4 years, 1 month ago (2016-11-10 04:28:16 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-10 05:18:42 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 05:22:31 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d351969bdb53d2ecf8f61db2987280a826cca738
Cr-Commit-Position: refs/heads/master@{#431188}

Powered by Google App Engine
This is Rietveld 408576698