| 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 "android::ResourceManagerImpl", |
| 21 "BlinkGC", | 21 "BlinkGC", |
| 22 "ChildDiscardableSharedMemoryManager", | 22 "ClientDiscardableSharedMemoryManager", |
| 23 "DOMStorage", | 23 "DOMStorage", |
| 24 "HostDiscardableSharedMemoryManager", | 24 "DiscardableSharedMemoryManager", |
| 25 "IndexedDBBackingStore", | 25 "IndexedDBBackingStore", |
| 26 "JavaHeap", | 26 "JavaHeap", |
| 27 "LevelDB", | 27 "LevelDB", |
| 28 "LeveldbValueStore", | 28 "LeveldbValueStore", |
| 29 "Malloc", | 29 "Malloc", |
| 30 "MemoryCache", | 30 "MemoryCache", |
| 31 "PartitionAlloc", | 31 "PartitionAlloc", |
| 32 "ProcessMemoryMetrics", | 32 "ProcessMemoryMetrics", |
| 33 "Skia", | 33 "Skia", |
| 34 "Sql", | 34 "Sql", |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 void SetDumpProviderWhitelistForTesting(const char* const* list) { | 177 void SetDumpProviderWhitelistForTesting(const char* const* list) { |
| 178 g_dump_provider_whitelist = list; | 178 g_dump_provider_whitelist = list; |
| 179 } | 179 } |
| 180 | 180 |
| 181 void SetAllocatorDumpNameWhitelistForTesting(const char* const* list) { | 181 void SetAllocatorDumpNameWhitelistForTesting(const char* const* list) { |
| 182 g_allocator_dump_name_whitelist = list; | 182 g_allocator_dump_name_whitelist = list; |
| 183 } | 183 } |
| 184 | 184 |
| 185 } // namespace trace_event | 185 } // namespace trace_event |
| 186 } // namespace base | 186 } // namespace base |
| OLD | NEW |