Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: base/trace_event/memory_infra_background_whitelist.cc

Issue 2712703004: [memory-infra] Update discardable memory dump provider names for background whitelist (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698