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

Issue 10854076: Add GPU memory tab to the task manager. (Closed)

Created:
8 years, 4 months ago by ccameron
Modified:
8 years, 4 months ago
CC:
chromium-reviews, tfarina, jam, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, yoshiki+watch_chromium.org
Visibility:
Public.

Description

Add GPU memory tab to the task manager. Each renderer process will have all of the resources that the GPU process has allocated on its behalf (including WebGL resources, compositor resources, and the backbuffer) included in its printed total. The GPU process will have the all resources currently allocated by the GPU process in its column. This will be approximately the sum of all other rows. The row for the GPU process is printed in ()s to draw attention to the fact that its size includes duplicates from other processes' sizes. I happy this UI scheme (having played with a few), but I'd wider feedback. Note that we do not account for swapchains or for backbuffers allocated by the browser process, so those allocations are not counted in the total. BUG=140157 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152233

Patch Set 1 #

Patch Set 2 : Allow only one outstanding vidmem refresh #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : Clean try errors (remove semicolon, remove unneeded assert that unittests don't follow) #

Total comments: 24

Patch Set 5 : Incorporate review feedback #

Patch Set 6 : Incorporate task manager review feedback #

Total comments: 8

Patch Set 7 : Incorporate review feedback #

Total comments: 2

Patch Set 8 : Change vague Vidmem label to VidmemUsageStats #

Total comments: 2

Patch Set 9 : Change OnVidmemUsageStats to OnVidmemUsageStatsReceived #

Total comments: 7

Patch Set 10 : Incorporate taskman feedback #

Total comments: 26

Patch Set 11 : Incorporate review feedback #

Total comments: 6

Patch Set 12 : Incorporate review feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+445 lines, -16 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/swiftshader_component_installer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/gpu_blacklist.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/gpu_feature_checker.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/task_manager/defines.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/task_manager/main.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/task_manager/task_manager.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +100 lines, -1 line 2 comments Download
M chrome/browser/ui/cocoa/task_manager_mac.mm View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/task_manager_gtk.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/task_manager_gtk.cc View 1 2 3 4 5 6 7 8 9 10 10 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/ui/views/task_manager_view.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/flash_ui.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/gpu_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/task_manager/task_manager_handler.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/task_manager/task_manager_ui.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/tracing_ui.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_data_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_data_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -1 line 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +16 lines, -9 lines 0 comments Download
M content/common/gpu/gpu_memory_manager.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +14 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_memory_manager.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +32 lines, -2 lines 0 comments Download
A content/common/gpu/gpu_memory_tracking.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +53 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +17 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -0 lines 0 comments Download
M content/public/browser/gpu_data_manager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/gpu_data_manager_observer.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
A content/public/common/gpu_memory_stats.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +43 lines, -0 lines 0 comments Download
A content/public/common/gpu_memory_stats.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
ccameron
http://codereview.chromium.org/10854076/diff/2001/chrome/browser/task_manager/task_manager.cc File chrome/browser/task_manager/task_manager.cc (right): http://codereview.chromium.org/10854076/diff/2001/chrome/browser/task_manager/task_manager.cc#newcode261 chrome/browser/task_manager/task_manager.cc:261: string16 TaskManagerModel::GetResourceVidmem( This will print N/A for all processes ...
8 years, 4 months ago (2012-08-09 20:55:39 UTC) #1
greggman
reviewed only the gpu/ files https://chromiumcodereview.appspot.com/10854076/diff/2001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://chromiumcodereview.appspot.com/10854076/diff/2001/content/gpu/gpu_child_thread.cc#newcode220 content/gpu/gpu_child_thread.cc:220: void GpuChildThread::OnGetVidmem() style: { ...
8 years, 4 months ago (2012-08-10 01:23:25 UTC) #2
ccameron
Thanks -- I fixed the style issues (sorry there were so many!). The in-line constructor ...
8 years, 4 months ago (2012-08-10 18:13:38 UTC) #3
yoshiki
To show it on chromeos task manager, you should edit additional 3 files: 1) chrome/browser/ui/webui/task_manager/task_manager_handler.cc ...
8 years, 4 months ago (2012-08-11 00:05:40 UTC) #4
ccameron
Thanks! On 2012/08/11 00:05:40, yoshiki wrote: > 1) chrome/browser/ui/webui/task_manager/task_manager_handler.cc > Please add the entry to ...
8 years, 4 months ago (2012-08-11 01:04:51 UTC) #5
yoshiki
Sorry, my previous comment was wrong: "Column" is unnecessary , as well as the other ...
8 years, 4 months ago (2012-08-11 01:42:26 UTC) #6
ccameron
Thanks! CL updated. http://codereview.chromium.org/10854076/diff/11033/chrome/browser/resources/task_manager/defines.js File chrome/browser/resources/task_manager/defines.js (right): http://codereview.chromium.org/10854076/diff/11033/chrome/browser/resources/task_manager/defines.js#newcode33 chrome/browser/resources/task_manager/defines.js:33: ['vidmemColumn', 'vidmemColumn', 80, false], On 2012/08/11 ...
8 years, 4 months ago (2012-08-13 18:08:05 UTC) #7
greggman
http://codereview.chromium.org/10854076/diff/6006/content/browser/gpu/gpu_process_host_ui_shim.cc File content/browser/gpu/gpu_process_host_ui_shim.cc (right): http://codereview.chromium.org/10854076/diff/6006/content/browser/gpu/gpu_process_host_ui_shim.cc#newcode210 content/browser/gpu/gpu_process_host_ui_shim.cc:210: IPC_MESSAGE_HANDLER(GpuHostMsg_Vidmem, Sorry to bring this up again but "OnVidmem" ...
8 years, 4 months ago (2012-08-14 23:48:17 UTC) #8
ccameron
http://codereview.chromium.org/10854076/diff/6006/content/browser/gpu/gpu_process_host_ui_shim.cc File content/browser/gpu/gpu_process_host_ui_shim.cc (right): http://codereview.chromium.org/10854076/diff/6006/content/browser/gpu/gpu_process_host_ui_shim.cc#newcode210 content/browser/gpu/gpu_process_host_ui_shim.cc:210: IPC_MESSAGE_HANDLER(GpuHostMsg_Vidmem, On 2012/08/14 23:48:17, greggman wrote: > Sorry to ...
8 years, 4 months ago (2012-08-15 02:20:41 UTC) #9
ccameron
I'd like to land this soon -- please review!
8 years, 4 months ago (2012-08-15 22:56:47 UTC) #10
greggman
On 2012/08/15 22:56:47, ccameron1 wrote: > I'd like to land this soon -- please review! ...
8 years, 4 months ago (2012-08-16 00:23:59 UTC) #11
greggman
http://codereview.chromium.org/10854076/diff/4005/content/browser/gpu/gpu_process_host_ui_shim.h File content/browser/gpu/gpu_process_host_ui_shim.h (right): http://codereview.chromium.org/10854076/diff/4005/content/browser/gpu/gpu_process_host_ui_shim.h#newcode103 content/browser/gpu/gpu_process_host_ui_shim.h:103: void OnVidmemUsageStats( I still have no idea what this ...
8 years, 4 months ago (2012-08-16 00:24:15 UTC) #12
ccameron
http://codereview.chromium.org/10854076/diff/4005/content/browser/gpu/gpu_process_host_ui_shim.h File content/browser/gpu/gpu_process_host_ui_shim.h (right): http://codereview.chromium.org/10854076/diff/4005/content/browser/gpu/gpu_process_host_ui_shim.h#newcode103 content/browser/gpu/gpu_process_host_ui_shim.h:103: void OnVidmemUsageStats( On 2012/08/16 00:24:15, greggman wrote: > OnVidmemUsageStats ...
8 years, 4 months ago (2012-08-16 00:38:53 UTC) #13
greggman
lgtm You'll need reviews for all the other folders. Might want to ping them directly.
8 years, 4 months ago (2012-08-16 00:48:36 UTC) #14
yoshiki
I'm reviewing following files. - chrome/browser/resources/task_manager/* - chrome/browser/task_manager/* - chrome/browser/ui/webui/task_manager/* http://codereview.chromium.org/10854076/diff/2007/chrome/browser/ui/webui/task_manager/task_manager_handler.cc File chrome/browser/ui/webui/task_manager/task_manager_handler.cc (right): http://codereview.chromium.org/10854076/diff/2007/chrome/browser/ui/webui/task_manager/task_manager_handler.cc#newcode112 ...
8 years, 4 months ago (2012-08-16 06:25:59 UTC) #15
yoshiki
http://codereview.chromium.org/10854076/diff/2007/chrome/browser/ui/webui/task_manager/task_manager_handler.cc File chrome/browser/ui/webui/task_manager/task_manager_handler.cc (right): http://codereview.chromium.org/10854076/diff/2007/chrome/browser/ui/webui/task_manager/task_manager_handler.cc#newcode112 chrome/browser/ui/webui/task_manager/task_manager_handler.cc:112: tm->GetVidmem(i, &vidmem, &has_duplicates); On 2012/08/16 06:25:59, yoshiki wrote: > ...
8 years, 4 months ago (2012-08-16 06:27:03 UTC) #16
ccameron
http://codereview.chromium.org/10854076/diff/2007/chrome/browser/ui/webui/task_manager/task_manager_handler.cc File chrome/browser/ui/webui/task_manager/task_manager_handler.cc (right): http://codereview.chromium.org/10854076/diff/2007/chrome/browser/ui/webui/task_manager/task_manager_handler.cc#newcode112 chrome/browser/ui/webui/task_manager/task_manager_handler.cc:112: tm->GetVidmem(i, &vidmem, &has_duplicates); On 2012/08/16 06:25:59, yoshiki wrote: > ...
8 years, 4 months ago (2012-08-16 17:58:30 UTC) #17
yoshiki
- chrome/browser/resources/task_manager/* - chrome/browser/task_manager/* - chrome/browser/ui/webui/task_manager/* LGTM
8 years, 4 months ago (2012-08-17 01:53:15 UTC) #18
ccameron
On 2012/08/17 01:53:15, yoshiki wrote: > - chrome/browser/resources/task_manager/* > - chrome/browser/task_manager/* > - chrome/browser/ui/webui/task_manager/* > ...
8 years, 4 months ago (2012-08-17 01:55:35 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/10854076/10036
8 years, 4 months ago (2012-08-17 16:19:21 UTC) #20
commit-bot: I haz the power
Presubmit check for 10854076-10036 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-17 16:19:37 UTC) #21
jam
nits for content http://codereview.chromium.org/10854076/diff/10036/content/common/gpu/gpu_memory_manager.h File content/common/gpu/gpu_memory_manager.h (right): http://codereview.chromium.org/10854076/diff/10036/content/common/gpu/gpu_memory_manager.h#newcode141 content/common/gpu/gpu_memory_manager.h:141: class GpuMemoryTrackingGroup { nit: put this ...
8 years, 4 months ago (2012-08-17 18:31:05 UTC) #22
brettw
LGTM, just some style nits. http://codereview.chromium.org/10854076/diff/10036/chrome/browser/task_manager/task_manager.cc File chrome/browser/task_manager/task_manager.cc (right): http://codereview.chromium.org/10854076/diff/10036/chrome/browser/task_manager/task_manager.cc#newcode262 chrome/browser/task_manager/task_manager.cc:262: int index) const { ...
8 years, 4 months ago (2012-08-17 19:07:24 UTC) #23
ccameron
http://codereview.chromium.org/10854076/diff/10036/chrome/browser/task_manager/task_manager.cc File chrome/browser/task_manager/task_manager.cc (right): http://codereview.chromium.org/10854076/diff/10036/chrome/browser/task_manager/task_manager.cc#newcode262 chrome/browser/task_manager/task_manager.cc:262: int index) const { On 2012/08/17 19:07:24, brettw wrote: ...
8 years, 4 months ago (2012-08-17 20:52:55 UTC) #24
jam
lgtm http://codereview.chromium.org/10854076/diff/13006/content/public/common/gpu_memory_stats.cc File content/public/common/gpu_memory_stats.cc (right): http://codereview.chromium.org/10854076/diff/13006/content/public/common/gpu_memory_stats.cc#newcode1 content/public/common/gpu_memory_stats.cc:1: // Copyright (c) 2012 The Chromium Authors. All ...
8 years, 4 months ago (2012-08-17 22:47:09 UTC) #25
ccameron
Thanks! http://codereview.chromium.org/10854076/diff/13006/content/public/common/gpu_memory_stats.cc File content/public/common/gpu_memory_stats.cc (right): http://codereview.chromium.org/10854076/diff/13006/content/public/common/gpu_memory_stats.cc#newcode1 content/public/common/gpu_memory_stats.cc:1: // Copyright (c) 2012 The Chromium Authors. All ...
8 years, 4 months ago (2012-08-17 22:52:35 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/10854076/3064
8 years, 4 months ago (2012-08-18 00:50:31 UTC) #27
commit-bot: I haz the power
Change committed as 152233
8 years, 4 months ago (2012-08-18 03:11:43 UTC) #28
Lei Zhang
https://chromiumcodereview.appspot.com/10854076/diff/3064/chrome/browser/task_manager/task_manager.cc File chrome/browser/task_manager/task_manager.cc (right): https://chromiumcodereview.appspot.com/10854076/diff/3064/chrome/browser/task_manager/task_manager.cc#newcode991 chrome/browser/task_manager/task_manager.cc:991: new TaskManagerModelGpuDataManagerObserver; Umm, whose job is it to delete ...
8 years, 4 months ago (2012-08-23 02:34:16 UTC) #29
ccameron
https://chromiumcodereview.appspot.com/10854076/diff/3064/chrome/browser/task_manager/task_manager.cc File chrome/browser/task_manager/task_manager.cc (right): https://chromiumcodereview.appspot.com/10854076/diff/3064/chrome/browser/task_manager/task_manager.cc#newcode991 chrome/browser/task_manager/task_manager.cc:991: new TaskManagerModelGpuDataManagerObserver; On 2012/08/23 02:34:17, Lei Zhang wrote: > ...
8 years, 4 months ago (2012-08-23 04:52:35 UTC) #30
ccameron
8 years, 4 months ago (2012-08-23 05:54:28 UTC) #31

Powered by Google App Engine
This is Rietveld 408576698