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

Issue 2573183002: Add process start time and CPU time columns to task manager (Closed)

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

Description

Add process start time and CPU time columns to task manager Both start time and CPU time are obtained using shared_sampler_win.cc. By default, they won't show up. BUG=670921 Review-Url: https://codereview.chromium.org/2573183002 Cr-Commit-Position: refs/heads/master@{#442449} Committed: https://chromium.googlesource.com/chromium/src/+/848410dc4e71fa3ce9727478ab013a8948c4dfc6

Patch Set 1 #

Patch Set 2 : Fix nits #

Total comments: 30

Patch Set 3 : Address the questions from CR #

Patch Set 4 : Update variable names #

Patch Set 5 : Fix shared_sampler_unittest_win #

Patch Set 6 : Add TODO comment for a bug, which will be addressed in another CL. #

Total comments: 25

Patch Set 7 : Addess CR questions #

Total comments: 4

Patch Set 8 : Move ticks-Time and ticks-TimeDelta conversions to shared_sampler_win.cc #

Total comments: 8

Patch Set 9 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into updatetaskmanager #

Patch Set 10 : Fix nits and conflicts. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -20 lines) Patch
M base/i18n/time_formatting.h View 1 2 3 4 5 6 7 1 chunk +20 lines, -1 line 0 comments Download
M base/i18n/time_formatting.cc View 1 2 3 4 5 6 2 chunks +23 lines, -3 lines 0 comments Download
M base/i18n/time_formatting_unittest.cc View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/sampling/shared_sampler.h View 1 2 3 4 5 6 7 5 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/task_manager/sampling/shared_sampler_posix.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/task_manager/sampling/shared_sampler_unittest_win.cc View 1 2 3 4 5 6 7 5 chunks +59 lines, -2 lines 0 comments Download
M chrome/browser/task_manager/sampling/shared_sampler_win.cc View 1 2 3 4 5 6 7 8 9 12 chunks +49 lines, -3 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_group.h View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_group.cc View 1 2 3 4 5 6 7 8 3 chunks +24 lines, -5 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_manager_impl.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_manager_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_interface.h View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/task_manager/task_manager_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/task_manager/test_task_manager.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/test_task_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/task_manager/task_manager_columns.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/task_manager/task_manager_table_model.cc View 1 2 3 4 5 6 7 8 6 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 114 (91 generated)
chengx
PTAL~
4 years ago (2016-12-19 20:53:34 UTC) #40
brucedawson
> show up in task manager by default. I suspect we don't want the new ...
4 years ago (2016-12-19 21:51:06 UTC) #41
stanisc
https://codereview.chromium.org/2573183002/diff/400001/base/i18n/time_formatting.h File base/i18n/time_formatting.h (right): https://codereview.chromium.org/2573183002/diff/400001/base/i18n/time_formatting.h#newcode87 base/i18n/time_formatting.h:87: TimeDurationWFormatWithSecondPrecison(const TimeDelta& time, On 2016/12/19 21:51:05, brucedawson wrote: > ...
4 years ago (2016-12-19 22:44:10 UTC) #42
chengx
On 2016/12/19 21:51:06, brucedawson wrote: > > show up in task manager by default. > ...
4 years ago (2016-12-20 00:51:13 UTC) #47
brucedawson
https://codereview.chromium.org/2573183002/diff/400001/chrome/browser/task_manager/sampling/task_manager_impl.cc File chrome/browser/task_manager/sampling/task_manager_impl.cc (right): https://codereview.chromium.org/2573183002/diff/400001/chrome/browser/task_manager/sampling/task_manager_impl.cc#newcode99 chrome/browser/task_manager/sampling/task_manager_impl.cc:99: int64_t time_in_100ns = GetTaskGroupByTaskId(task_id)->start_time(); On 2016/12/19 22:44:10, stanisc wrote: ...
4 years ago (2016-12-20 01:27:57 UTC) #48
chengx
On 2016/12/20 01:27:57, brucedawson wrote: > https://codereview.chromium.org/2573183002/diff/400001/chrome/browser/task_manager/sampling/task_manager_impl.cc > File chrome/browser/task_manager/sampling/task_manager_impl.cc (right): > > https://codereview.chromium.org/2573183002/diff/400001/chrome/browser/task_manager/sampling/task_manager_impl.cc#newcode99 > ...
4 years ago (2016-12-20 22:39:27 UTC) #66
chengx
On 2016/12/20 01:27:57, brucedawson wrote: > https://codereview.chromium.org/2573183002/diff/400001/chrome/browser/task_manager/sampling/task_manager_impl.cc > File chrome/browser/task_manager/sampling/task_manager_impl.cc (right): > > https://codereview.chromium.org/2573183002/diff/400001/chrome/browser/task_manager/sampling/task_manager_impl.cc#newcode99 > ...
4 years ago (2016-12-20 22:39:32 UTC) #67
chengx
Hi, this CL is ready for ready. dcheng@, can you PTAL the //base code? nick@, ...
4 years ago (2016-12-21 00:44:34 UTC) #71
brucedawson
lgtm with minor nits https://codereview.chromium.org/2573183002/diff/540001/base/i18n/time_formatting.h File base/i18n/time_formatting.h (right): https://codereview.chromium.org/2573183002/diff/540001/base/i18n/time_formatting.h#newcode85 base/i18n/time_formatting.h:85: // (http://crbug.com/675791) Maybe skip these ...
4 years ago (2016-12-21 02:13:40 UTC) #74
afakhry
Also please wait until nick@chromium.org reviews shared_sampler_*_win.cc. https://codereview.chromium.org/2573183002/diff/540001/chrome/browser/task_manager/sampling/task_group.cc File chrome/browser/task_manager/sampling/task_group.cc (right): https://codereview.chromium.org/2573183002/diff/540001/chrome/browser/task_manager/sampling/task_group.cc#newcode148 chrome/browser/task_manager/sampling/task_group.cc:148: expected_on_bg_done_flags_ = ...
4 years ago (2016-12-21 18:34:34 UTC) #77
stanisc
lgtm with a few suggestions https://codereview.chromium.org/2573183002/diff/540001/chrome/browser/task_manager/sampling/shared_sampler.h File chrome/browser/task_manager/sampling/shared_sampler.h (right): https://codereview.chromium.org/2573183002/diff/540001/chrome/browser/task_manager/sampling/shared_sampler.h#newcode55 chrome/browser/task_manager/sampling/shared_sampler.h:55: const OnCpuTimeCallback& on_cpu_time); If ...
4 years ago (2016-12-21 19:17:52 UTC) #78
dcheng
I'm a little sad that we're adding fairly one-off functions into //base. TimeDurationFormat is used ...
4 years ago (2016-12-21 20:45:37 UTC) #79
chengx
Hi, this patch addresses the questions from the previous patch. PTAL~ On 2016/12/21 20:45:37, dcheng ...
4 years ago (2016-12-21 22:05:14 UTC) #81
chengx
https://codereview.chromium.org/2573183002/diff/540001/base/i18n/time_formatting.h File base/i18n/time_formatting.h (right): https://codereview.chromium.org/2573183002/diff/540001/base/i18n/time_formatting.h#newcode84 base/i18n/time_formatting.h:84: // TODO (chengx) fix function output when width = ...
4 years ago (2016-12-21 22:05:55 UTC) #82
dcheng
base LGTM with comment addressed https://codereview.chromium.org/2573183002/diff/580001/base/i18n/time_formatting.h File base/i18n/time_formatting.h (right): https://codereview.chromium.org/2573183002/diff/580001/base/i18n/time_formatting.h#newcode84 base/i18n/time_formatting.h:84: // TODO (chengx): fix ...
4 years ago (2016-12-21 23:28:58 UTC) #87
afakhry
https://codereview.chromium.org/2573183002/diff/540001/chrome/browser/task_manager/sampling/task_group.cc File chrome/browser/task_manager/sampling/task_group.cc (right): https://codereview.chromium.org/2573183002/diff/540001/chrome/browser/task_manager/sampling/task_group.cc#newcode148 chrome/browser/task_manager/sampling/task_group.cc:148: expected_on_bg_done_flags_ = refresh_flags & kBackgroundRefreshTypesMask; On 2016/12/21 22:05:54, chengx ...
4 years ago (2016-12-22 00:28:14 UTC) #88
chengx
afakhry@ and ncarter@, PTAL~ https://codereview.chromium.org/2573183002/diff/580001/base/i18n/time_formatting.h File base/i18n/time_formatting.h (right): https://codereview.chromium.org/2573183002/diff/580001/base/i18n/time_formatting.h#newcode84 base/i18n/time_formatting.h:84: // TODO (chengx): fix function ...
4 years ago (2016-12-22 21:42:55 UTC) #98
chengx
Kind reminder. afakhry@ and ncarter@, PTAL~ Thanks!
3 years, 11 months ago (2017-01-04 00:52:12 UTC) #100
chengx
afakhry@ and ncarter@, PTAL~ Thanks!
3 years, 11 months ago (2017-01-09 20:01:53 UTC) #101
afakhry
lgtm with nits. https://codereview.chromium.org/2573183002/diff/700001/chrome/browser/task_manager/sampling/shared_sampler_win.cc File chrome/browser/task_manager/sampling/shared_sampler_win.cc (right): https://codereview.chromium.org/2573183002/diff/700001/chrome/browser/task_manager/sampling/shared_sampler_win.cc#newcode446 chrome/browser/task_manager/sampling/shared_sampler_win.cc:446: namespace { Nit: Usually we have ...
3 years, 11 months ago (2017-01-09 21:03:43 UTC) #102
chengx
afakhry@, I have addressed the nits in the new patch. Thanks! https://codereview.chromium.org/2573183002/diff/700001/chrome/browser/task_manager/sampling/shared_sampler_win.cc File chrome/browser/task_manager/sampling/shared_sampler_win.cc (right): ...
3 years, 11 months ago (2017-01-10 00:39:27 UTC) #110
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/2573183002/780001
3 years, 11 months ago (2017-01-10 00:39:47 UTC) #111
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 02:35:43 UTC) #114
Message was sent while issue was closed.
Committed patchset #10 (id:780001) as
https://chromium.googlesource.com/chromium/src/+/848410dc4e71fa3ce9727478ab01...

Powered by Google App Engine
This is Rietveld 408576698