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

Issue 2238403003: Task manager: Get physical memory efficiently for all processes from SharedSampler (Closed)

Created:
4 years, 4 months ago by stanisc
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Task manager: Get physical memory efficiently for all processes from SharedSampler. This leverages recently introduced SharedSampler to get Physical Memory (Memory column) efficiently for all processes in one go. This applies only to Windows implementation. Two other memory columns which aren't shown by default are still mapped to the old, more expensive implementation. BUG=618862 Committed: https://crrev.com/a8d8427d83905a9fc64242dde7b21f1a8eda839c Cr-Commit-Position: refs/heads/master@{#415066}

Patch Set 1 #

Patch Set 2 : Added unit tests #

Patch Set 3 : Fixed build warning #

Patch Set 4 : Fixed test failure #

Total comments: 13

Patch Set 5 : Addressed CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -395 lines) Patch
M chrome/browser/task_manager/sampling/shared_sampler.h View 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/task_manager/sampling/shared_sampler_posix.cc View 1 chunk +2 lines, -1 line 0 comments Download
A chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc View 1 2 3 4 1 chunk +147 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/sampling/shared_sampler_win.cc View 10 chunks +20 lines, -2 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_group.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_group.cc View 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_observer.h View 1 chunk +15 lines, -11 lines 0 comments Download
M chrome/browser/ui/task_manager/task_manager_table_model.cc View 1 chunk +4 lines, -3 lines 0 comments Download
D chrome/browser/win/private_working_set_snapshot.h View 1 chunk +0 lines, -119 lines 0 comments Download
D chrome/browser/win/private_working_set_snapshot.cc View 1 chunk +0 lines, -189 lines 0 comments Download
D chrome/browser/win/private_working_set_snapshot_unittest.cc View 1 chunk +0 lines, -66 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 37 (27 generated)
stanisc
PTAL!
4 years, 3 months ago (2016-08-25 23:51:47 UTC) #18
brucedawson
https://codereview.chromium.org/2238403003/diff/60001/chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc File chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc (right): https://codereview.chromium.org/2238403003/diff/60001/chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc#newcode28 chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc:28: : expected_refresh_type_(0), finished_refresh_type_(0), We are now allowed to initialize ...
4 years, 3 months ago (2016-08-26 01:02:11 UTC) #21
stanisc
Addressed Bruce's feedback https://codereview.chromium.org/2238403003/diff/60001/chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc File chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc (right): https://codereview.chromium.org/2238403003/diff/60001/chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc#newcode28 chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc:28: : expected_refresh_type_(0), finished_refresh_type_(0), On 2016/08/26 01:02:10, ...
4 years, 3 months ago (2016-08-26 20:47:56 UTC) #24
brucedawson
lgtm but I defer to Nick for the owner review. https://codereview.chromium.org/2238403003/diff/60001/chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc File chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc (right): https://codereview.chromium.org/2238403003/diff/60001/chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc#newcode28 ...
4 years, 3 months ago (2016-08-26 21:47:28 UTC) #27
ncarter (slow)
lgtm
4 years, 3 months ago (2016-08-29 16:32:58 UTC) #28
stanisc
+grt@chromium.org for changes in chrome/browser/win
4 years, 3 months ago (2016-08-29 18:13:05 UTC) #30
grt (UTC plus 2)
On 2016/08/29 18:13:05, stanisc wrote: > mailto:+grt@chromium.org for changes in chrome/browser/win rubberstamp lgtm since the ...
4 years, 3 months ago (2016-08-29 18:38:47 UTC) #31
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/2238403003/80001
4 years, 3 months ago (2016-08-29 20:11:42 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-08-30 03:59:11 UTC) #35
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 04:02:13 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a8d8427d83905a9fc64242dde7b21f1a8eda839c
Cr-Commit-Position: refs/heads/master@{#415066}

Powered by Google App Engine
This is Rietveld 408576698