|
Added memory pressure monitor for linux.
Note that I don't know much about linux memory usage. The chromeos
version considered the virtual z(ram) in the total memory and the file
memory as easily reclaimable in the available memory. I removed those.
Methodology: added some debug logging and filled /dev/shm/ until chrome
crashed (The percentage returned by GetusedMemoryInPercent was 98% at
that point).
BUG=
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+332 lines, -543 lines) |
Patch |
|
M |
base/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
base/base.gyp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
base/base.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
base/memory/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
base/memory/memory_pressure_monitor.h
|
View
|
1
2
3
4
|
2 chunks |
+249 lines, -5 lines |
0 comments
|
Download
|
|
M |
base/memory/memory_pressure_monitor.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -14 lines |
0 comments
|
Download
|
|
D |
base/memory/memory_pressure_monitor_chromeos.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -119 lines |
0 comments
|
Download
|
|
M |
base/memory/memory_pressure_monitor_chromeos.cc
|
View
|
1
2
3
4
|
5 chunks |
+7 lines, -9 lines |
0 comments
|
Download
|
|
M |
base/memory/memory_pressure_monitor_chromeos_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
A + |
base/memory/memory_pressure_monitor_linux.cc
|
View
|
1
2
3
4
|
5 chunks |
+41 lines, -144 lines |
0 comments
|
Download
|
|
A + |
base/memory/memory_pressure_monitor_linux_unittest.cc
|
View
|
1
2
3
|
6 chunks |
+7 lines, -15 lines |
0 comments
|
Download
|
|
D |
base/memory/memory_pressure_monitor_mac.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -63 lines |
0 comments
|
Download
|
|
M |
base/memory/memory_pressure_monitor_mac.cc
|
View
|
1
2
3
4
|
5 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
base/memory/memory_pressure_monitor_mac_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
D |
base/memory/memory_pressure_monitor_win.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -144 lines |
0 comments
|
Download
|
|
M |
base/memory/memory_pressure_monitor_win.cc
|
View
|
1
2
3
4
|
4 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
base/memory/memory_pressure_monitor_win_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/browser_main_loop.cc
|
View
|
1
2
3
|
5 chunks |
+6 lines, -9 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 11 (1 generated)
|