|
Experimental 'purging and suspending' backgrounded tabs behind the flag
This CL adds an experimental feature, 'purging and suspending'
backgrounded tabs to save memory usage. This feature is behind the
flag '--purge-and-suspend-time' taking a time value in seconds. When
the indicated time passes after a tab goes backgrounded, the
backgrounded tab's memory cache is purged and suspended. We expect
only purgable memory like cache is purged and tab behaviors would never
be affected.
This CL adds only suspending and not purging any cache. I'll add
purging feature later.
BUG= 551995, 607077
Committed: https://crrev.com/6909327ee89d7bd5b69e9e578bcb28388271b2ea
Cr-Commit-Position: refs/heads/master@{#393476}
Total comments: 6
Total comments: 2
Total comments: 6
Total comments: 5
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+124 lines, -5 lines) |
Patch |
|
M |
chrome/browser/memory/tab_manager.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/memory/tab_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+36 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/memory/tab_manager_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/common/chrome_switches.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/common/chrome_switches.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/scheduler/renderer/renderer_scheduler.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/scheduler/renderer/renderer_scheduler_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
components/scheduler/renderer/renderer_scheduler_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/scheduler/renderer/renderer_scheduler_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_process_host_impl.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/child/child_thread_impl.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/child/child_thread_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/child_process_messages.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/browser/render_process_host.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/test/mock_render_process_host.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/public/test/mock_render_process_host.cc
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_thread_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_thread_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
2 chunks |
+15 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/test/fake_renderer_scheduler.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/test/fake_renderer_scheduler.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 44 (16 generated)
|