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

Issue 1081323003: Convert renderer JS memory usage reporting to use Mojo. (Closed)

Created:
5 years, 8 months ago by Anand Mistry (off Chromium)
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@utility-process-report-js-memory
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert renderer JS memory usage reporting to use Mojo. As a result, removes the NOTIFICATION_RENDERER_V8_HEAP_STATS_COMPUTED notification. BUG=268984, 487927 Committed: https://crrev.com/77099c24ca1783490e38a2e2d44c7a524c50531b Cr-Commit-Position: refs/heads/master@{#330692}

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Fix build files. #

Total comments: 13

Patch Set 4 : Review comments. #

Patch Set 5 : Rebase and remove obsolete comment. #

Patch Set 6 : Rebase and fix tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -219 lines) Patch
M chrome/browser/chrome_notification_types.h View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/process_resource_usage.h View 1 2 3 3 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/process_resource_usage.cc View 1 2 3 2 chunks +42 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 2 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 2 chunks +0 lines, -27 lines 0 comments Download
M chrome/browser/task_manager/child_process_resource_provider.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/task_manager/renderer_resource.h View 1 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/task_manager/renderer_resource.cc View 1 5 chunks +12 lines, -18 lines 0 comments Download
M chrome/browser/task_manager/resource_provider.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/task_manager/task_manager.h View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/memory_internals/memory_internals_proxy.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc View 1 2 3 5 chunks +41 lines, -24 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/common/resource_usage_reporter.mojom View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/renderer/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_render_process_observer.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/chrome_render_process_observer.cc View 1 2 3 4 5 5 chunks +78 lines, -85 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
Anand Mistry (off Chromium)
This is a follow-up to my utility process reporting change. I figured there's no point ...
5 years, 7 months ago (2015-05-13 03:58:58 UTC) #2
ncarter (slow)
Nice. https://codereview.chromium.org/1081323003/diff/40001/chrome/browser/chrome_notification_types.h File chrome/browser/chrome_notification_types.h (left): https://codereview.chromium.org/1081323003/diff/40001/chrome/browser/chrome_notification_types.h#oldcode262 chrome/browser/chrome_notification_types.h:262: NOTIFICATION_RENDERER_V8_HEAP_STATS_COMPUTED, :) Make sure you mention BUG=268984 (Kill ...
5 years, 7 months ago (2015-05-14 06:28:13 UTC) #3
Anand Mistry (off Chromium)
https://codereview.chromium.org/1081323003/diff/40001/chrome/browser/chrome_notification_types.h File chrome/browser/chrome_notification_types.h (left): https://codereview.chromium.org/1081323003/diff/40001/chrome/browser/chrome_notification_types.h#oldcode262 chrome/browser/chrome_notification_types.h:262: NOTIFICATION_RENDERER_V8_HEAP_STATS_COMPUTED, On 2015/05/14 06:28:12, ncarter wrote: > :) > ...
5 years, 7 months ago (2015-05-14 07:30:41 UTC) #4
ncarter (slow)
lgtm https://codereview.chromium.org/1081323003/diff/40001/chrome/browser/process_resource_usage.cc File chrome/browser/process_resource_usage.cc (right): https://codereview.chromium.org/1081323003/diff/40001/chrome/browser/process_resource_usage.cc#newcode53 chrome/browser/process_resource_usage.cc:53: void ProcessResourceUsage::OnConnectionError() { On 2015/05/14 07:30:41, Anand Mistry ...
5 years, 7 months ago (2015-05-14 13:59:59 UTC) #5
Anand Mistry (off Chromium)
jam@chromium.org: For //chrome, and since you're a reviewer on the change this depends on.
5 years, 7 months ago (2015-05-14 21:37:16 UTC) #7
Anand Mistry (off Chromium)
tsepez@chromium.org: For render_messages.h
5 years, 7 months ago (2015-05-14 23:26:05 UTC) #9
Tom Sepez
RS LGTM on deleting code.
5 years, 7 months ago (2015-05-14 23:30:57 UTC) #10
Anand Mistry (off Chromium)
jam: Ping! https://codereview.chromium.org/1081323003/diff/40001/chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc File chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc (right): https://codereview.chromium.org/1081323003/diff/40001/chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc#newcode179 chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc:179: DCHECK(iter != resource_usage_reporters_.end()); On 2015/05/14 13:59:58, ncarter ...
5 years, 7 months ago (2015-05-19 04:28:38 UTC) #11
jam
lgtm
5 years, 7 months ago (2015-05-19 16:07:29 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081323003/80001
5 years, 7 months ago (2015-05-20 01:52:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1081323003/100001
5 years, 7 months ago (2015-05-20 03:01:50 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 7 months ago (2015-05-20 03:49:05 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 03:49:59 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/77099c24ca1783490e38a2e2d44c7a524c50531b
Cr-Commit-Position: refs/heads/master@{#330692}

Powered by Google App Engine
This is Rietveld 408576698