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

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

Issue 2667293003: [OBSOLETE][memory-infra] Whitelist net dump providers in field trials (Closed)
Patch Set: fix comment. Created 3 years, 10 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 | net/base/sdch_manager.cc » ('j') | net/url_request/url_request_context.cc » ('J')
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",
35 "URLRequestContext",
35 "V8Isolate", 36 "V8Isolate",
36 "WinHeap", 37 "WinHeap",
37 "SyncDirectory", 38 "SyncDirectory",
38 nullptr // End of list marker. 39 nullptr // End of list marker.
39 }; 40 };
40 41
41 // A list of string names that are allowed for the memory allocator dumps in 42 // A list of string names that are allowed for the memory allocator dumps in
42 // background mode. 43 // background mode.
43 const char* const kAllocatorDumpNameWhitelist[] = { 44 const char* const kAllocatorDumpNameWhitelist[] = {
44 "blink_gc", 45 "blink_gc",
45 "blink_gc/allocated_objects", 46 "blink_gc/allocated_objects",
46 "discardable", 47 "discardable",
47 "discardable/child_0x?", 48 "discardable/child_0x?",
48 "dom_storage/0x?/cache_size", 49 "dom_storage/0x?/cache_size",
49 "dom_storage/session_storage_0x?", 50 "dom_storage/session_storage_0x?",
50 "java_heap", 51 "java_heap",
51 "java_heap/allocated_objects", 52 "java_heap/allocated_objects",
52 "leveldb/index_db/0x?", 53 "leveldb/index_db/0x?",
53 "leveldb/leveldb_proto/0x?", 54 "leveldb/leveldb_proto/0x?",
54 "leveldb/value_store/Extensions.Database.Open.Settings/0x?", 55 "leveldb/value_store/Extensions.Database.Open.Settings/0x?",
55 "leveldb/value_store/Extensions.Database.Open.Rules/0x?", 56 "leveldb/value_store/Extensions.Database.Open.Rules/0x?",
56 "leveldb/value_store/Extensions.Database.Open.State/0x?", 57 "leveldb/value_store/Extensions.Database.Open.State/0x?",
57 "leveldb/value_store/Extensions.Database.Open/0x?", 58 "leveldb/value_store/Extensions.Database.Open/0x?",
58 "leveldb/value_store/Extensions.Database.Restore/0x?", 59 "leveldb/value_store/Extensions.Database.Restore/0x?",
59 "leveldb/value_store/Extensions.Database.Value.Restore/0x?", 60 "leveldb/value_store/Extensions.Database.Value.Restore/0x?",
60 "malloc", 61 "malloc",
61 "malloc/allocated_objects", 62 "malloc/allocated_objects",
62 "malloc/metadata_fragmentation_caches", 63 "malloc/metadata_fragmentation_caches",
64 "net/http_network_session_0x?",
65 "net/http_network_session_0x?/http_cache",
66 "net/http_network_session_0x?/socket_pool",
67 "net/http_network_session_0x?/spdy_session_pool",
68 "net/http_network_session_0x?/stream_factory",
69 "net/http_network_session_0x?/quic_stream_factory",
70 "net/sdch_manager_0x?",
71 "net/ssl_session_cache",
63 "web_cache/Image_resources", 72 "web_cache/Image_resources",
64 "web_cache/CSS stylesheet_resources", 73 "web_cache/CSS stylesheet_resources",
65 "web_cache/Script_resources", 74 "web_cache/Script_resources",
66 "web_cache/XSL stylesheet_resources", 75 "web_cache/XSL stylesheet_resources",
67 "web_cache/Font_resources", 76 "web_cache/Font_resources",
68 "web_cache/Other_resources", 77 "web_cache/Other_resources",
69 "partition_alloc/allocated_objects", 78 "partition_alloc/allocated_objects",
70 "partition_alloc/partitions", 79 "partition_alloc/partitions",
71 "partition_alloc/partitions/buffer", 80 "partition_alloc/partitions/buffer",
72 "partition_alloc/partitions/fast_malloc", 81 "partition_alloc/partitions/fast_malloc",
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void SetDumpProviderWhitelistForTesting(const char* const* list) { 145 void SetDumpProviderWhitelistForTesting(const char* const* list) {
137 g_dump_provider_whitelist = list; 146 g_dump_provider_whitelist = list;
138 } 147 }
139 148
140 void SetAllocatorDumpNameWhitelistForTesting(const char* const* list) { 149 void SetAllocatorDumpNameWhitelistForTesting(const char* const* list) {
141 g_allocator_dump_name_whitelist = list; 150 g_allocator_dump_name_whitelist = list;
142 } 151 }
143 152
144 } // namespace trace_event 153 } // namespace trace_event
145 } // namespace base 154 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | net/base/sdch_manager.cc » ('j') | net/url_request/url_request_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698