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

Issue 8574012: Schedule idle handler based on CPU usage. (Closed)

Created:
9 years, 1 month ago by ulan
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Erik does not do reviews, jam, mihaip+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Schedule idle handler based on CPU usage. Previously, idle handler was scheduled only for inactive tabs and extensions via a timer, regardless of CPU usage. This CL enables idle handler for the active tab and unifies idle handler scheduling for all three cases. By checking CPU usage and V8 feedback, the new scheduling algorithm avoids redundant garbage collection requests. BUG= TEST=

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -151 lines) Patch
M chrome/renderer/chrome_content_renderer_client.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 6 chunks +2 lines, -35 lines 2 comments Download
M content/public/renderer/content_renderer_client.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/renderer/render_process_observer.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/renderer/render_thread.h View 1 chunk +1 line, -10 lines 0 comments Download
M content/renderer/mock_content_renderer_client.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/mock_content_renderer_client.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/render_thread_impl.h View 5 chunks +12 lines, -9 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 7 chunks +51 lines, -54 lines 1 comment Download
M content/shell/shell_content_renderer_client.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/shell_content_renderer_client.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/test/mock_render_thread.h View 1 chunk +1 line, -5 lines 0 comments Download
M content/test/mock_render_thread.cc View 1 chunk +1 line, -12 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ulan
Please take a look. Although this CL seems large, most of it is deleting code. ...
9 years, 1 month ago (2011-11-15 19:08:53 UTC) #1
Matt Perry
In general this doesn't seem quite right to me. Previously the idle timer would only ...
9 years, 1 month ago (2011-11-15 23:44:33 UTC) #2
ulan
Thank you for the feedback! It made me realize that I shouldn't make many changes ...
9 years, 1 month ago (2011-11-16 14:16:50 UTC) #3
Aaron Boodman
9 years, 1 month ago (2011-11-23 22:52:20 UTC) #4
http://codereview.chromium.org/8574012/diff/1/chrome/renderer/extensions/exte...
File chrome/renderer/extensions/extension_dispatcher.cc (right):

http://codereview.chromium.org/8574012/diff/1/chrome/renderer/extensions/exte...
chrome/renderer/extensions/extension_dispatcher.cc:122: if
(is_extension_process_) {
Nit: the braces can go away now.

Powered by Google App Engine
This is Rietveld 408576698