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

Issue 803443006: Adding flag to specify the used memory pressure strategy (Closed)

Created:
5 years, 11 months ago by Mr4D (OOO till 08-26)
Modified:
5 years, 11 months ago
CC:
chromium-reviews, jam, erikwright+watch_chromium.org, stevenjb+watch_chromium.org, oshima+watch_chromium.org, darin-cc_chromium.org, Luigi Semenzato
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding flag to specify the used memory pressure strategy This CL adds a flag to change the memory pressure event thresholds. This flag will later on then used in a finch experiment to test the influence of the thresholds on the system. BUG=449374 TEST=- Committed: https://crrev.com/f6f74b0eeeb0598b982f44f663405fb9ca919907 Cr-Commit-Position: refs/heads/master@{#312499}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed #

Total comments: 2

Patch Set 3 : Addressed nit #

Patch Set 4 : Fixing unit test #

Total comments: 4

Patch Set 5 : Addressed #

Patch Set 6 : Adding flag to histograms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -13 lines) Patch
M base/chromeos/memory_pressure_observer_chromeos.h View 1 2 3 4 2 chunks +25 lines, -1 line 0 comments Download
M base/chromeos/memory_pressure_observer_chromeos.cc View 1 2 3 4 2 chunks +43 lines, -10 lines 0 comments Download
M base/chromeos/memory_pressure_observer_chromeos_unittest.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/app/chromeos_strings.grdp View 1 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 2 chunks +21 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.h View 3 chunks +5 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 2 chunks +27 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Mr4D (OOO till 08-26)
Please have a look!
5 years, 11 months ago (2015-01-21 00:40:59 UTC) #2
Charlie Reis
No objections here to having a way to experiment with this, though I'm also not ...
5 years, 11 months ago (2015-01-21 17:42:06 UTC) #3
Mr4D (OOO till 08-26)
Addressed! Please have another look! https://codereview.chromium.org/803443006/diff/1/base/chromeos/memory_pressure_observer_chromeos.cc File base/chromeos/memory_pressure_observer_chromeos.cc (right): https://codereview.chromium.org/803443006/diff/1/base/chromeos/memory_pressure_observer_chromeos.cc#newcode50 base/chromeos/memory_pressure_observer_chromeos.cc:50: (thresholds == AGGRESSIVE_MODERATE_THRESHOLD || ...
5 years, 11 months ago (2015-01-21 18:52:14 UTC) #5
Charlie Reis
Thanks, that's much easier to follow. LGTM with nit. https://codereview.chromium.org/803443006/diff/20001/chromeos/chromeos_switches.cc File chromeos/chromeos_switches.cc (right): https://codereview.chromium.org/803443006/diff/20001/chromeos/chromeos_switches.cc#newcode309 chromeos/chromeos_switches.cc:309: ...
5 years, 11 months ago (2015-01-21 19:37:55 UTC) #6
Mr4D (OOO till 08-26)
Many thanks! https://codereview.chromium.org/803443006/diff/20001/chromeos/chromeos_switches.cc File chromeos/chromeos_switches.cc (right): https://codereview.chromium.org/803443006/diff/20001/chromeos/chromeos_switches.cc#newcode309 chromeos/chromeos_switches.cc:309: if (option == "1") On 2015/01/21 19:37:55, ...
5 years, 11 months ago (2015-01-21 21:01:36 UTC) #7
James Cook
LGTM with two very optional nits https://codereview.chromium.org/803443006/diff/60001/base/chromeos/memory_pressure_observer_chromeos.cc File base/chromeos/memory_pressure_observer_chromeos.cc (right): https://codereview.chromium.org/803443006/diff/60001/base/chromeos/memory_pressure_observer_chromeos.cc#newcode37 base/chromeos/memory_pressure_observer_chromeos.cc:37: MEMORY_PRESSURE_THRESHOLD_AGGRESSIVE_CACHE_DISCARD || nit: ...
5 years, 11 months ago (2015-01-21 21:24:26 UTC) #8
Mr4D (OOO till 08-26)
Addressed! Thanks for your review! https://codereview.chromium.org/803443006/diff/60001/base/chromeos/memory_pressure_observer_chromeos.cc File base/chromeos/memory_pressure_observer_chromeos.cc (right): https://codereview.chromium.org/803443006/diff/60001/base/chromeos/memory_pressure_observer_chromeos.cc#newcode37 base/chromeos/memory_pressure_observer_chromeos.cc:37: MEMORY_PRESSURE_THRESHOLD_AGGRESSIVE_CACHE_DISCARD || On 2015/01/21 ...
5 years, 11 months ago (2015-01-21 21:54:34 UTC) #9
Mr4D (OOO till 08-26)
Could you please do an owners review for histograms.xls? Many thanks!
5 years, 11 months ago (2015-01-21 22:02:39 UTC) #13
Alexei Svitkine (slow)
lgtm
5 years, 11 months ago (2015-01-21 22:04:36 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/803443006/100001
5 years, 11 months ago (2015-01-21 22:09:53 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 11 months ago (2015-01-22 00:06:11 UTC) #17
commit-bot: I haz the power
5 years, 11 months ago (2015-01-22 00:07:05 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f6f74b0eeeb0598b982f44f663405fb9ca919907
Cr-Commit-Position: refs/heads/master@{#312499}

Powered by Google App Engine
This is Rietveld 408576698