OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/trace_event/memory_infra_background_whitelist.h" | 5 #include "base/trace_event/memory_infra_background_whitelist.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 namespace trace_event { | 13 namespace trace_event { |
14 namespace { | 14 namespace { |
15 | 15 |
16 // The names of dump providers whitelisted for background tracing. Dump | 16 // The names of dump providers whitelisted for background tracing. Dump |
17 // providers can be added here only if the background mode dump has very | 17 // providers can be added here only if the background mode dump has very |
18 // less performance and memory overhead. | 18 // less performance and memory overhead. |
19 const char* const kDumpProviderWhitelist[] = { | 19 const char* const kDumpProviderWhitelist[] = { |
| 20 "android::ResourceManagerImpl", |
20 "BlinkGC", | 21 "BlinkGC", |
21 "ChildDiscardableSharedMemoryManager", | 22 "ChildDiscardableSharedMemoryManager", |
22 "DOMStorage", | 23 "DOMStorage", |
23 "HostDiscardableSharedMemoryManager", | 24 "HostDiscardableSharedMemoryManager", |
24 "IndexedDBBackingStore", | 25 "IndexedDBBackingStore", |
25 "JavaHeap", | 26 "JavaHeap", |
26 "LevelDB", | 27 "LevelDB", |
27 "LeveldbValueStore", | 28 "LeveldbValueStore", |
28 "Malloc", | 29 "Malloc", |
29 "MemoryCache", | 30 "MemoryCache", |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 "web_cache/Font_resources", | 72 "web_cache/Font_resources", |
72 "web_cache/Other_resources", | 73 "web_cache/Other_resources", |
73 "partition_alloc/allocated_objects", | 74 "partition_alloc/allocated_objects", |
74 "partition_alloc/partitions", | 75 "partition_alloc/partitions", |
75 "partition_alloc/partitions/buffer", | 76 "partition_alloc/partitions/buffer", |
76 "partition_alloc/partitions/fast_malloc", | 77 "partition_alloc/partitions/fast_malloc", |
77 "partition_alloc/partitions/layout", | 78 "partition_alloc/partitions/layout", |
78 "skia/sk_glyph_cache", | 79 "skia/sk_glyph_cache", |
79 "skia/sk_resource_cache", | 80 "skia/sk_resource_cache", |
80 "sqlite", | 81 "sqlite", |
| 82 "ui/resource_manager_0x?", |
81 "v8/isolate_0x?/heap_spaces", | 83 "v8/isolate_0x?/heap_spaces", |
82 "v8/isolate_0x?/heap_spaces/code_space", | 84 "v8/isolate_0x?/heap_spaces/code_space", |
83 "v8/isolate_0x?/heap_spaces/large_object_space", | 85 "v8/isolate_0x?/heap_spaces/large_object_space", |
84 "v8/isolate_0x?/heap_spaces/map_space", | 86 "v8/isolate_0x?/heap_spaces/map_space", |
85 "v8/isolate_0x?/heap_spaces/new_space", | 87 "v8/isolate_0x?/heap_spaces/new_space", |
86 "v8/isolate_0x?/heap_spaces/old_space", | 88 "v8/isolate_0x?/heap_spaces/old_space", |
87 "v8/isolate_0x?/heap_spaces/other_spaces", | 89 "v8/isolate_0x?/heap_spaces/other_spaces", |
88 "v8/isolate_0x?/malloc", | 90 "v8/isolate_0x?/malloc", |
89 "v8/isolate_0x?/zapped_for_debug", | 91 "v8/isolate_0x?/zapped_for_debug", |
90 "winheap", | 92 "winheap", |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 void SetDumpProviderWhitelistForTesting(const char* const* list) { | 139 void SetDumpProviderWhitelistForTesting(const char* const* list) { |
138 g_dump_provider_whitelist = list; | 140 g_dump_provider_whitelist = list; |
139 } | 141 } |
140 | 142 |
141 void SetAllocatorDumpNameWhitelistForTesting(const char* const* list) { | 143 void SetAllocatorDumpNameWhitelistForTesting(const char* const* list) { |
142 g_allocator_dump_name_whitelist = list; | 144 g_allocator_dump_name_whitelist = list; |
143 } | 145 } |
144 | 146 |
145 } // namespace trace_event | 147 } // namespace trace_event |
146 } // namespace base | 148 } // namespace base |
OLD | NEW |