|
Adding Baseframework of the ResourceManager (all hooks and observers)
are being put in place with a very basic management scheme
The current ash implementation of the LowMemoryObserver polls
"/dev/chromeos-low-mem" to find if we are running out of memory.
After discussion with semenzato@ we decided that that is not precise
enough and we should rather poll the system memory information. Going
forward this has multiple benefits:
1. it does not require special kernel handling.
2. it also gives us information about GPU memory on chromeOS which
will come handy once we are adding more sophisticated management.
Beside that, this CL adds the ResourceManager which hooks itself into
several components to detect changes in Activity's and their ordering
as well as memory pressure.
Note: The current management implementation itself is really primitive
and needs to be improved.
TBR for the DEPS file
BUG= 381212, 403782
TEST=MemoryPressureTest.*, ResourceManagerTest.*
TBR=oshima@chromium.org
Committed: https://crrev.com/c8c38693393c172a44abdd18e4232ed1479be9bd
Cr-Commit-Position: refs/heads/master@{#292286}
Total comments: 29
Total comments: 6
Total comments: 2
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1125 lines, -5 lines) |
Patch |
 |
M |
athena/activity/activity_manager_impl.h
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
athena/activity/activity_manager_impl.cc
|
View
|
1
2
3
4
|
4 chunks |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
athena/activity/public/activity_manager.h
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
athena/activity/public/activity_manager_observer.h
|
View
|
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
M |
athena/athena.gyp
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
athena/content/app_activity.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
athena/content/app_activity_proxy.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
athena/content/app_activity_proxy.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
athena/content/app_activity_registry.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
athena/content/web_activity.cc
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
athena/home/home_card_impl.cc
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
athena/main/DEPS
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
athena/main/athena_launcher.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
athena/resource_manager/DEPS
|
View
|
1
2
3
4
5
6
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
athena/resource_manager/OWNERS
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A |
athena/resource_manager/delegate/resource_manager_delegate.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
 |
A |
athena/resource_manager/memory_pressure_notifier.h
|
View
|
1
2
|
1 chunk |
+92 lines, -0 lines |
0 comments
|
Download
|
 |
A |
athena/resource_manager/memory_pressure_notifier.cc
|
View
|
1
2
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
 |
A |
athena/resource_manager/memory_pressure_notifier_unittest.cc
|
View
|
1
|
1 chunk |
+221 lines, -0 lines |
0 comments
|
Download
|
 |
A |
athena/resource_manager/public/resource_manager.h
|
View
|
1
2
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
A |
athena/resource_manager/public/resource_manager_delegate.h
|
View
|
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
athena/resource_manager/resource_manager_impl.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+255 lines, -0 lines |
0 comments
|
Download
|
 |
A |
athena/resource_manager/resource_manager_unittest.cc
|
View
|
1
2
|
1 chunk |
+207 lines, -0 lines |
0 comments
|
Download
|
 |
M |
athena/test/DEPS
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
athena/test/test_resource_manager_delegate.cc
|
View
|
1
2
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
 |
M |
athena/wm/public/window_manager_observer.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
1 comment
|
Download
|
 |
M |
athena/wm/window_manager_impl.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
athena/wm/window_manager_impl.cc
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
Total messages: 36 (1 generated)
|