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

Issue 972083002: Report utility process JS memory in task manager. (Closed)

Created:
5 years, 9 months ago by Anand Mistry (off Chromium)
Modified:
5 years, 7 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), ben+mojo_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@v8-pac-oop
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Report utility process JS memory in task manager. BUG=467832 Committed: https://crrev.com/faa231a441d9890d8dee349b578dee7abed70501 Cr-Commit-Position: refs/heads/master@{#330670}

Patch Set 1 #

Patch Set 2 : Clean up. #

Total comments: 15

Patch Set 3 : Redesign. #

Total comments: 23

Patch Set 4 : Move to //chrome and add test. #

Patch Set 5 : Update comment. #

Total comments: 1

Patch Set 6 : Try fixing the build. #

Patch Set 7 : Try to fix build... again. #

Total comments: 15

Patch Set 8 : Review changes. #

Patch Set 9 : Remove include. #

Patch Set 10 : Rebase and fix build. #

Total comments: 2

Patch Set 11 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -11 lines) Patch
A chrome/browser/process_resource_usage.h View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/process_resource_usage.cc View 1 2 3 4 5 6 7 1 chunk +52 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/child_process_resource_provider.cc View 1 2 3 6 chunks +80 lines, -6 lines 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +45 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest_util.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest_util.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/chrome_utility.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 4 chunks +11 lines, -0 lines 0 comments Download
A chrome/common/resource_usage_reporter.mojom View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/utility/BUILD.gn View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 6 7 8 9 3 chunks +33 lines, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download
M content/browser/utility_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/browser/browser_child_process_host.h View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M content/public/browser/browser_child_process_host_delegate.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M content/public/browser/browser_child_process_host_delegate.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/utility_process_host.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 44 (13 generated)
Anand Mistry (off Chromium)
afakhry: Added you because of the task manager re-write. What do you think? I need ...
5 years, 8 months ago (2015-04-13 06:20:40 UTC) #2
Anand Mistry (off Chromium)
FYI, there's no rush to review this. I'll be gone for a week and a ...
5 years, 8 months ago (2015-04-13 06:23:15 UTC) #4
afakhry
Adding +ncarter as he's the owner of the old task manager.
5 years, 8 months ago (2015-04-13 16:28:53 UTC) #6
Anand Mistry (off Chromium)
And to see what this would look like if it was applied to the renderer ...
5 years, 8 months ago (2015-04-14 06:57:20 UTC) #7
ncarter (slow)
On 2015/04/14 06:57:20, Anand Mistry wrote: > And to see what this would look like ...
5 years, 8 months ago (2015-04-14 17:40:40 UTC) #8
ncarter (slow)
Overall I'm excited to get this data into the task manager. Thanks for taking this ...
5 years, 7 months ago (2015-05-01 21:16:53 UTC) #9
ncarter (slow)
https://codereview.chromium.org/972083002/diff/20001/chrome/browser/task_manager/child_process_resource_provider.cc File chrome/browser/task_manager/child_process_resource_provider.cc (right): https://codereview.chromium.org/972083002/diff/20001/chrome/browser/task_manager/child_process_resource_provider.cc#newcode93 chrome/browser/task_manager/child_process_resource_provider.cc:93: resource_usage_(resource_usage) { Can you come up with a TaskManagerBrowserTest ...
5 years, 7 months ago (2015-05-01 21:37:59 UTC) #10
afakhry
https://codereview.chromium.org/972083002/diff/20001/content/public/browser/process_resource_usage.h File content/public/browser/process_resource_usage.h (right): https://codereview.chromium.org/972083002/diff/20001/content/public/browser/process_resource_usage.h#newcode19 content/public/browser/process_resource_usage.h:19: virtual void Refresh() = 0; On 2015/05/01 21:16:52, ncarter ...
5 years, 7 months ago (2015-05-04 20:30:03 UTC) #11
Anand Mistry (off Chromium)
No code changes to review, but responding to a couple of comments. https://codereview.chromium.org/972083002/diff/20001/content/browser/process_resource_usage_impl.h File content/browser/process_resource_usage_impl.h ...
5 years, 7 months ago (2015-05-05 04:11:21 UTC) #12
Anand Mistry (off Chromium)
I haven't written any tests yet. I'd like to get your feedback on this implementation ...
5 years, 7 months ago (2015-05-06 02:44:19 UTC) #13
afakhry
https://codereview.chromium.org/972083002/diff/40001/chrome/browser/task_manager/child_process_resource_provider.cc File chrome/browser/task_manager/child_process_resource_provider.cc (right): https://codereview.chromium.org/972083002/diff/40001/chrome/browser/task_manager/child_process_resource_provider.cc#newcode92 chrome/browser/task_manager/child_process_resource_provider.cc:92: void ChildProcessResource::GetProcessUsageOnIOThread( What do you think of moving the ...
5 years, 7 months ago (2015-05-06 17:16:28 UTC) #14
ncarter (slow)
This is really coming together nicely. https://codereview.chromium.org/972083002/diff/20001/content/browser/process_resource_usage_impl.h File content/browser/process_resource_usage_impl.h (right): https://codereview.chromium.org/972083002/diff/20001/content/browser/process_resource_usage_impl.h#newcode17 content/browser/process_resource_usage_impl.h:17: On 2015/05/06 02:44:18, ...
5 years, 7 months ago (2015-05-07 20:12:44 UTC) #15
Anand Mistry (off Chromium)
Moved to //chrome and added a test. https://codereview.chromium.org/972083002/diff/40001/chrome/browser/task_manager/child_process_resource_provider.cc File chrome/browser/task_manager/child_process_resource_provider.cc (right): https://codereview.chromium.org/972083002/diff/40001/chrome/browser/task_manager/child_process_resource_provider.cc#newcode92 chrome/browser/task_manager/child_process_resource_provider.cc:92: void ChildProcessResource::GetProcessUsageOnIOThread( ...
5 years, 7 months ago (2015-05-11 05:41:31 UTC) #16
ncarter (slow)
lgtm! https://codereview.chromium.org/972083002/diff/40001/chrome/browser/task_manager/child_process_resource_provider.cc File chrome/browser/task_manager/child_process_resource_provider.cc (right): https://codereview.chromium.org/972083002/diff/40001/chrome/browser/task_manager/child_process_resource_provider.cc#newcode92 chrome/browser/task_manager/child_process_resource_provider.cc:92: void ChildProcessResource::GetProcessUsageOnIOThread( On 2015/05/11 05:41:31, Anand Mistry wrote: ...
5 years, 7 months ago (2015-05-11 20:35:40 UTC) #17
Anand Mistry (off Chromium)
jam@chromium.org: For chrome/content
5 years, 7 months ago (2015-05-11 23:37:18 UTC) #19
jam
https://codereview.chromium.org/972083002/diff/120001/chrome/browser/process_resource_usage.h File chrome/browser/process_resource_usage.h (right): https://codereview.chromium.org/972083002/diff/120001/chrome/browser/process_resource_usage.h#newcode18 chrome/browser/process_resource_usage.h:18: // about://memory-internals. is someone tasked to make about:memory-internals to ...
5 years, 7 months ago (2015-05-12 16:12:23 UTC) #20
ncarter (slow)
+tsepez for security review (hooking up a new mojo interface)
5 years, 7 months ago (2015-05-12 18:29:05 UTC) #22
Tom Sepez
Messages LGTM. https://codereview.chromium.org/972083002/diff/120001/chrome/common/resource_usage_reporter.mojom File chrome/common/resource_usage_reporter.mojom (right): https://codereview.chromium.org/972083002/diff/120001/chrome/common/resource_usage_reporter.mojom#newcode7 chrome/common/resource_usage_reporter.mojom:7: uint64 v8_memory_allocated = 0; nit: I'd call ...
5 years, 7 months ago (2015-05-12 19:18:17 UTC) #23
Anand Mistry (off Chromium)
https://codereview.chromium.org/972083002/diff/120001/chrome/browser/process_resource_usage.h File chrome/browser/process_resource_usage.h (right): https://codereview.chromium.org/972083002/diff/120001/chrome/browser/process_resource_usage.h#newcode18 chrome/browser/process_resource_usage.h:18: // about://memory-internals. On 2015/05/12 16:12:23, jam wrote: > is ...
5 years, 7 months ago (2015-05-13 00:42:12 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/972083002/160001
5 years, 7 months ago (2015-05-15 00:28:13 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/53286) ios_dbg_simulator_ninja on ...
5 years, 7 months ago (2015-05-15 00:37:43 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/972083002/180001
5 years, 7 months ago (2015-05-15 00:58:46 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-15 01:48:15 UTC) #34
jam
argh, sorry for the delay, I missed your message (feel free to ping me if ...
5 years, 7 months ago (2015-05-15 06:54:23 UTC) #35
Anand Mistry (off Chromium)
https://codereview.chromium.org/972083002/diff/120001/chrome/utility/chrome_content_utility_client.cc File chrome/utility/chrome_content_utility_client.cc (right): https://codereview.chromium.org/972083002/diff/120001/chrome/utility/chrome_content_utility_client.cc#newcode105 chrome/utility/chrome_content_utility_client.cc:105: size_t total_heap_size = net::ProxyResolverV8::GetTotalHeapSize(); On 2015/05/15 06:54:22, jam wrote: ...
5 years, 7 months ago (2015-05-15 07:25:41 UTC) #36
Anand Mistry (off Chromium)
https://codereview.chromium.org/972083002/diff/120001/chrome/utility/chrome_content_utility_client.cc File chrome/utility/chrome_content_utility_client.cc (right): https://codereview.chromium.org/972083002/diff/120001/chrome/utility/chrome_content_utility_client.cc#newcode105 chrome/utility/chrome_content_utility_client.cc:105: size_t total_heap_size = net::ProxyResolverV8::GetTotalHeapSize(); On 2015/05/15 07:25:41, Anand Mistry ...
5 years, 7 months ago (2015-05-19 04:30:50 UTC) #37
jam
lgtm https://codereview.chromium.org/972083002/diff/120001/chrome/utility/chrome_content_utility_client.cc File chrome/utility/chrome_content_utility_client.cc (right): https://codereview.chromium.org/972083002/diff/120001/chrome/utility/chrome_content_utility_client.cc#newcode105 chrome/utility/chrome_content_utility_client.cc:105: size_t total_heap_size = net::ProxyResolverV8::GetTotalHeapSize(); On 2015/05/15 07:25:41, Anand ...
5 years, 7 months ago (2015-05-19 16:11:47 UTC) #38
Anand Mistry (off Chromium)
https://codereview.chromium.org/972083002/diff/180001/chrome/common/resource_usage_reporter.mojom File chrome/common/resource_usage_reporter.mojom (right): https://codereview.chromium.org/972083002/diff/180001/chrome/common/resource_usage_reporter.mojom#newcode14 chrome/common/resource_usage_reporter.mojom:14: GetUsageData() => (ResourceUsageData data); On 2015/05/19 16:11:47, jam wrote: ...
5 years, 7 months ago (2015-05-20 00:39:10 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/972083002/200001
5 years, 7 months ago (2015-05-20 00:57:50 UTC) #42
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 7 months ago (2015-05-20 01:49:21 UTC) #43
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 01:50:19 UTC) #44
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/faa231a441d9890d8dee349b578dee7abed70501
Cr-Commit-Position: refs/heads/master@{#330670}

Powered by Google App Engine
This is Rietveld 408576698