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

Issue 2593233003: Add a task manager column that shows memory state of processes (Closed)

Created:
4 years ago by bashi
Modified:
3 years, 11 months ago
Reviewers:
afakhry
CC:
chromium-reviews, haraken, chrisha
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a task manager column that shows memory state of processes When memory coordinator is enabled, each process has its memory state. This CL adds a column to the task manager to show memory states so that users can see these states. BUG=673216 Committed: https://crrev.com/1cccc93926ed0ff7cc3f5674834559a8747135b2 Cr-Commit-Position: refs/heads/master@{#441584}

Patch Set 1 #

Patch Set 2 : Add test #

Patch Set 3 : Use N/A string when MC is disabled #

Total comments: 6

Patch Set 4 : comments addressed #

Total comments: 5

Patch Set 5 : TODO #

Patch Set 6 : i18n #

Patch Set 7 : fix compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -7 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_group.h View 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_group.cc View 3 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_manager_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_manager_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest.cc View 1 2 3 chunks +43 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest_util.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest_util.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_interface.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_observer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_tester.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_tester.cc View 1 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/test_task_manager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/task_manager/test_task_manager.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/task_manager/task_manager_columns.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/task_manager/task_manager_table_model.cc View 1 2 3 4 5 6 7 chunks +38 lines, -1 line 0 comments Download

Messages

Total messages: 44 (33 generated)
bashi
afakhry@: PTAL?
4 years ago (2016-12-22 07:56:37 UTC) #13
afakhry
https://codereview.chromium.org/2593233003/diff/40001/chrome/browser/ui/task_manager/task_manager_table_model.cc File chrome/browser/ui/task_manager/task_manager_table_model.cc (right): https://codereview.chromium.org/2593233003/diff/40001/chrome/browser/ui/task_manager/task_manager_table_model.cc#newcode66 chrome/browser/ui/task_manager/task_manager_table_model.cc:66: case IDS_TASK_MANAGER_PROCESS_PRIORITY_COLUMN: Since the Memory State is a per-process ...
3 years, 11 months ago (2017-01-03 18:53:17 UTC) #16
bashi
Thank you for review! https://codereview.chromium.org/2593233003/diff/40001/chrome/browser/ui/task_manager/task_manager_table_model.cc File chrome/browser/ui/task_manager/task_manager_table_model.cc (right): https://codereview.chromium.org/2593233003/diff/40001/chrome/browser/ui/task_manager/task_manager_table_model.cc#newcode66 chrome/browser/ui/task_manager/task_manager_table_model.cc:66: case IDS_TASK_MANAGER_PROCESS_PRIORITY_COLUMN: On 2017/01/03 18:53:16, ...
3 years, 11 months ago (2017-01-05 00:51:49 UTC) #19
afakhry
lgtm with a nit. https://codereview.chromium.org/2593233003/diff/60001/chrome/browser/ui/task_manager/task_manager_table_model.cc File chrome/browser/ui/task_manager/task_manager_table_model.cc (right): https://codereview.chromium.org/2593233003/diff/60001/chrome/browser/ui/task_manager/task_manager_table_model.cc#newcode150 chrome/browser/ui/task_manager/task_manager_table_model.cc:150: // TODO(bashi): i18n. Nit: This ...
3 years, 11 months ago (2017-01-05 00:57:30 UTC) #20
bashi
https://codereview.chromium.org/2593233003/diff/60001/chrome/browser/ui/task_manager/task_manager_table_model.cc File chrome/browser/ui/task_manager/task_manager_table_model.cc (right): https://codereview.chromium.org/2593233003/diff/60001/chrome/browser/ui/task_manager/task_manager_table_model.cc#newcode150 chrome/browser/ui/task_manager/task_manager_table_model.cc:150: // TODO(bashi): i18n. On 2017/01/05 00:57:30, afakhry wrote: > ...
3 years, 11 months ago (2017-01-05 01:05:52 UTC) #23
afakhry
https://codereview.chromium.org/2593233003/diff/60001/chrome/browser/ui/task_manager/task_manager_table_model.cc File chrome/browser/ui/task_manager/task_manager_table_model.cc (right): https://codereview.chromium.org/2593233003/diff/60001/chrome/browser/ui/task_manager/task_manager_table_model.cc#newcode150 chrome/browser/ui/task_manager/task_manager_table_model.cc:150: // TODO(bashi): i18n. On 2017/01/05 01:05:52, bashi1 (ooo Dec ...
3 years, 11 months ago (2017-01-05 01:27:11 UTC) #24
bashi
https://codereview.chromium.org/2593233003/diff/60001/chrome/browser/ui/task_manager/task_manager_table_model.cc File chrome/browser/ui/task_manager/task_manager_table_model.cc (right): https://codereview.chromium.org/2593233003/diff/60001/chrome/browser/ui/task_manager/task_manager_table_model.cc#newcode150 chrome/browser/ui/task_manager/task_manager_table_model.cc:150: // TODO(bashi): i18n. On 2017/01/05 01:27:10, afakhry wrote: > ...
3 years, 11 months ago (2017-01-05 02:18:22 UTC) #27
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/2593233003/120001
3 years, 11 months ago (2017-01-05 04:20:24 UTC) #38
commit-bot: I haz the power
Committed patchset #7 (id:120001)
3 years, 11 months ago (2017-01-05 04:25:15 UTC) #41
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/1cccc93926ed0ff7cc3f5674834559a8747135b2 Cr-Commit-Position: refs/heads/master@{#441584}
3 years, 11 months ago (2017-01-05 04:29:13 UTC) #43
afakhry
3 years, 11 months ago (2017-01-05 17:00:20 UTC) #44
Message was sent while issue was closed.
https://codereview.chromium.org/2593233003/diff/60001/chrome/browser/ui/task_...
File chrome/browser/ui/task_manager/task_manager_table_model.cc (right):

https://codereview.chromium.org/2593233003/diff/60001/chrome/browser/ui/task_...
chrome/browser/ui/task_manager/task_manager_table_model.cc:150: // TODO(bashi):
i18n.
On 2017/01/05 02:18:22, bashi wrote:
> On 2017/01/05 01:27:10, afakhry wrote:
> > On 2017/01/05 01:05:52, bashi1 (ooo Dec 28 - Jan 4) wrote:
> > > On 2017/01/05 00:57:30, afakhry wrote:
> > > > Nit: This TODO is very vague. Can you please explain what exactly that
> needs
> > > to
> > > > be done?
> > > 
> > > Done.
> > 
> > In this case it's quite simple to do here. Consider what we did for the
> process
> > priority. Take a look at the TaskManagerValuesStringifier constructor and
the
> > way we preload the localized backgrounded/foregrounded values.
> 
> Thanks for the suggestion. The MemoryState enums aren't stabilized yet (we may
> add/remove states) and I thought it would be better to localize them later.
But
> on second thought I think we should localize them anyway. Done.

Perfect, thanks!

Powered by Google App Engine
This is Rietveld 408576698