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> |
(...skipping 19 matching lines...) Expand all Loading... | |
30 "MemoryCache", | 30 "MemoryCache", |
31 "PartitionAlloc", | 31 "PartitionAlloc", |
32 "ProcessMemoryMetrics", | 32 "ProcessMemoryMetrics", |
33 "Skia", | 33 "Skia", |
34 "Sql", | 34 "Sql", |
35 "URLRequestContext", | 35 "URLRequestContext", |
36 "V8Isolate", | 36 "V8Isolate", |
37 "WinHeap", | 37 "WinHeap", |
38 "SyncDirectory", | 38 "SyncDirectory", |
39 "TabRestoreServiceHelper", | 39 "TabRestoreServiceHelper", |
40 "MojoHandleTable", | |
ssid
2017/06/08 18:12:36
nit: please place it in order, move to line 31
erikchen
2017/06/09 00:18:12
Done.
| |
40 nullptr // End of list marker. | 41 nullptr // End of list marker. |
41 }; | 42 }; |
42 | 43 |
43 // The names of dump providers whitelisted for summary tracing. | 44 // The names of dump providers whitelisted for summary tracing. |
44 const char* const kDumpProviderSummaryWhitelist[] = { | 45 const char* const kDumpProviderSummaryWhitelist[] = { |
45 "BlinkGC", "Malloc", "PartitionAlloc", "ProcessMemoryMetrics", "V8Isolate", | 46 "BlinkGC", "Malloc", "PartitionAlloc", "ProcessMemoryMetrics", "V8Isolate", |
46 nullptr // End of list marker. | 47 nullptr // End of list marker. |
47 }; | 48 }; |
48 | 49 |
49 // A list of string names that are allowed for the memory allocator dumps in | 50 // A list of string names that are allowed for the memory allocator dumps in |
(...skipping 11 matching lines...) Expand all Loading... | |
61 "leveldb/leveldb_proto/0x?", | 62 "leveldb/leveldb_proto/0x?", |
62 "leveldb/value_store/Extensions.Database.Open.Settings/0x?", | 63 "leveldb/value_store/Extensions.Database.Open.Settings/0x?", |
63 "leveldb/value_store/Extensions.Database.Open.Rules/0x?", | 64 "leveldb/value_store/Extensions.Database.Open.Rules/0x?", |
64 "leveldb/value_store/Extensions.Database.Open.State/0x?", | 65 "leveldb/value_store/Extensions.Database.Open.State/0x?", |
65 "leveldb/value_store/Extensions.Database.Open/0x?", | 66 "leveldb/value_store/Extensions.Database.Open/0x?", |
66 "leveldb/value_store/Extensions.Database.Restore/0x?", | 67 "leveldb/value_store/Extensions.Database.Restore/0x?", |
67 "leveldb/value_store/Extensions.Database.Value.Restore/0x?", | 68 "leveldb/value_store/Extensions.Database.Value.Restore/0x?", |
68 "malloc", | 69 "malloc", |
69 "malloc/allocated_objects", | 70 "malloc/allocated_objects", |
70 "malloc/metadata_fragmentation_caches", | 71 "malloc/metadata_fragmentation_caches", |
72 "mojo", | |
73 "mojo/data_pipe_consumer", | |
74 "mojo/data_pipe_producer", | |
75 "mojo/message_pipe", | |
76 "mojo/platform_handle", | |
77 "mojo/shared_buffer", | |
78 "mojo/unknown", | |
79 "mojo/watcher", | |
71 "net/http_network_session_0x?", | 80 "net/http_network_session_0x?", |
72 "net/http_network_session_0x?/quic_stream_factory", | 81 "net/http_network_session_0x?/quic_stream_factory", |
73 "net/http_network_session_0x?/socket_pool", | 82 "net/http_network_session_0x?/socket_pool", |
74 "net/http_network_session_0x?/spdy_session_pool", | 83 "net/http_network_session_0x?/spdy_session_pool", |
75 "net/http_network_session_0x?/stream_factory", | 84 "net/http_network_session_0x?/stream_factory", |
76 "net/sdch_manager_0x?", | 85 "net/sdch_manager_0x?", |
77 "net/ssl_session_cache", | 86 "net/ssl_session_cache", |
78 "net/url_request_context", | 87 "net/url_request_context", |
79 "net/url_request_context/app_request", | 88 "net/url_request_context/app_request", |
80 "net/url_request_context/app_request/0x?", | 89 "net/url_request_context/app_request/0x?", |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
270 void SetDumpProviderSummaryWhitelistForTesting(const char* const* list) { | 279 void SetDumpProviderSummaryWhitelistForTesting(const char* const* list) { |
271 g_dump_provider_whitelist_for_summary = list; | 280 g_dump_provider_whitelist_for_summary = list; |
272 } | 281 } |
273 | 282 |
274 void SetAllocatorDumpNameWhitelistForTesting(const char* const* list) { | 283 void SetAllocatorDumpNameWhitelistForTesting(const char* const* list) { |
275 g_allocator_dump_name_whitelist = list; | 284 g_allocator_dump_name_whitelist = list; |
276 } | 285 } |
277 | 286 |
278 } // namespace trace_event | 287 } // namespace trace_event |
279 } // namespace base | 288 } // namespace base |
OLD | NEW |