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

Issue 2811433002: Log app and tab discards. (Closed)

Created:
3 years, 8 months ago by teravest
Modified:
3 years, 8 months ago
CC:
chromium-reviews, Luigi Semenzato
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Log app and tab discards. On critical memory pressure, we already log entries at least for every tab and extension and the corresponding memory usage. However, there's no logging for the action that was taken in response. This should help us understand discard behavior in feedback reports from users. BUG=709253 TEST=build Review-Url: https://codereview.chromium.org/2811433002 Cr-Commit-Position: refs/heads/master@{#464018} Committed: https://chromium.googlesource.com/chromium/src/+/53cb7fcf9db050cac655e47ff85d02daac7dbb22

Patch Set 1 #

Patch Set 2 : rebase, fix conflict #

Patch Set 3 : fix build failure after rebase #

Total comments: 2

Patch Set 4 : fix tests #

Patch Set 5 : second test fix #

Patch Set 6 : add estimated_memory_freed_kb #

Total comments: 2

Patch Set 7 : kB -> KB #

Total comments: 2

Patch Set 8 : longer message when unable to kill #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -7 lines) Patch
M chrome/browser/memory/tab_manager_delegate_chromeos.cc View 1 2 3 4 5 6 7 4 chunks +15 lines, -3 lines 1 comment Download
M chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc View 1 2 3 4 4 chunks +9 lines, -3 lines 0 comments Download
M components/device_event_log/device_event_log.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M components/device_event_log/device_event_log_impl.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (31 generated)
teravest
3 years, 8 months ago (2017-04-08 01:59:21 UTC) #12
Daniel Erat
change itself looks fine to me, but it may be causing some test crashes: [ ...
3 years, 8 months ago (2017-04-08 15:06:38 UTC) #15
teravest
On 2017/04/08 15:06:38, Daniel Erat wrote: > change itself looks fine to me, but it ...
3 years, 8 months ago (2017-04-10 17:25:59 UTC) #22
Daniel Erat
lgtm https://codereview.chromium.org/2811433002/diff/100001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2811433002/diff/100001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode615 chrome/browser/memory/tab_manager_delegate_chromeos.cc:615: << estimated_memory_freed_kb << " kB freed"; nit: "KB" ...
3 years, 8 months ago (2017-04-10 17:39:49 UTC) #25
teravest
https://codereview.chromium.org/2811433002/diff/40001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2811433002/diff/40001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode614 chrome/browser/memory/tab_manager_delegate_chromeos.cc:614: MEMORY_LOG(ERROR) << "Killed " << *it; On 2017/04/08 15:06:37, ...
3 years, 8 months ago (2017-04-10 17:52:03 UTC) #27
Daniel Erat
thanks, still lgtm
3 years, 8 months ago (2017-04-10 18:05:19 UTC) #28
teravest
+stevenjb for components/device_event_log OWNERS +chrisha for chrome/browser/memory OWNERS
3 years, 8 months ago (2017-04-11 15:50:46 UTC) #29
stevenjb
https://codereview.chromium.org/2811433002/diff/120001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2811433002/diff/120001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode637 chrome/browser/memory/tab_manager_delegate_chromeos.cc:637: MEMORY_LOG(ERROR) << "No candidate killed."; If we are logging ...
3 years, 8 months ago (2017-04-11 17:12:53 UTC) #30
chrisha
rubber stamp lgtm
3 years, 8 months ago (2017-04-11 18:24:26 UTC) #31
teravest
https://codereview.chromium.org/2811433002/diff/120001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2811433002/diff/120001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode637 chrome/browser/memory/tab_manager_delegate_chromeos.cc:637: MEMORY_LOG(ERROR) << "No candidate killed."; On 2017/04/11 17:12:53, stevenjb ...
3 years, 8 months ago (2017-04-11 18:31:05 UTC) #32
semenzato
On 2017/04/11 18:31:05, teravest wrote: > https://codereview.chromium.org/2811433002/diff/120001/chrome/browser/memory/tab_manager_delegate_chromeos.cc > File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): > > https://codereview.chromium.org/2811433002/diff/120001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode637 > ...
3 years, 8 months ago (2017-04-11 18:39:23 UTC) #33
semenzato
https://codereview.chromium.org/2811433002/diff/140001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2811433002/diff/140001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode628 chrome/browser/memory/tab_manager_delegate_chromeos.cc:628: MEMORY_LOG(ERROR) << "Killed " << *it << ", estimated ...
3 years, 8 months ago (2017-04-11 18:39:40 UTC) #35
teravest
On 2017/04/11 18:39:40, semenzato wrote: > https://codereview.chromium.org/2811433002/diff/140001/chrome/browser/memory/tab_manager_delegate_chromeos.cc > File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): > > https://codereview.chromium.org/2811433002/diff/140001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode628 > ...
3 years, 8 months ago (2017-04-11 18:43:32 UTC) #36
stevenjb
lgtm
3 years, 8 months ago (2017-04-12 00:36:40 UTC) #41
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/2811433002/140001
3 years, 8 months ago (2017-04-12 14:30:49 UTC) #44
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 14:37:28 UTC) #47
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/53cb7fcf9db050cac655e47ff85d...

Powered by Google App Engine
This is Rietveld 408576698