|
base: Discardable memory types.
This adds a DiscardableMemoryType enum and a function that
can be used to select what type of discardable memory to
use. This is generally useful for debugging purposes and
when evaluating the performance of one implementation vs
another.
The unit test framework for discardable memory is improved
slightly by testing every supported type on each platform
rather then just the one specific type.
Furthermore, it allows us to expose ashmem based
discardable memory on ChromeOS in about:flags before we
make it default.
No change in behavior unless the new
--use-discardable-memory=type switch is used.
BUG= 327516
TEST=base_unitttest --gtest_filter=DiscardableMemory*
TBR=tomhudson@google.com
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243532
Total comments: 26
Total comments: 8
Total comments: 24
Total comments: 3
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+407 lines, -129 lines) |
Patch |
 |
M |
base/base.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory.h
|
View
|
1
2
3
4
5
|
3 chunks |
+42 lines, -13 lines |
0 comments
|
Download
|
 |
A |
base/memory/discardable_memory.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+85 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory_allocator_android.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory_android.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory_android.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+32 lines, -9 lines |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory_emulated.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory_emulated.cc
|
View
|
1
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory_linux.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+28 lines, -10 lines |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory_mac.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+70 lines, -40 lines |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory_provider_unittest.cc
|
View
|
1
|
10 chunks |
+17 lines, -15 lines |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+58 lines, -18 lines |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory_win.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+28 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/login/chrome_restart_request.cc
|
View
|
1
2
3
4
5
6
7
8
|
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
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/common/content_switches.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/common/content_switches.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_thread_impl.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
skia/ext/SkDiscardableMemory_chrome.cc
|
View
|
1
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/child/web_discardable_memory_impl.cc
|
View
|
1
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/child/webkitplatformsupport_child_impl.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
Total messages: 25 (0 generated)
|