|
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=
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
|
Total messages: 4 (0 generated)
|