| 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 14 matching lines...) Expand all Loading... |
| 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 "TabRestoreServiceHelper", | 39 "TabRestoreServiceHelper", |
| 39 nullptr // End of list marker. | 40 nullptr // End of list marker. |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 // A list of string names that are allowed for the memory allocator dumps in | 43 // A list of string names that are allowed for the memory allocator dumps in |
| 43 // background mode. | 44 // background mode. |
| 44 const char* const kAllocatorDumpNameWhitelist[] = { | 45 const char* const kAllocatorDumpNameWhitelist[] = { |
| 45 "blink_gc", | 46 "blink_gc", |
| 46 "blink_gc/allocated_objects", | 47 "blink_gc/allocated_objects", |
| 47 "discardable", | 48 "discardable", |
| 48 "discardable/child_0x?", | 49 "discardable/child_0x?", |
| 49 "dom_storage/0x?/cache_size", | 50 "dom_storage/0x?/cache_size", |
| 50 "dom_storage/session_storage_0x?", | 51 "dom_storage/session_storage_0x?", |
| 51 "java_heap", | 52 "java_heap", |
| 52 "java_heap/allocated_objects", | 53 "java_heap/allocated_objects", |
| 53 "leveldb/index_db/0x?", | 54 "leveldb/index_db/0x?", |
| 54 "leveldb/leveldb_proto/0x?", | 55 "leveldb/leveldb_proto/0x?", |
| 55 "leveldb/value_store/Extensions.Database.Open.Settings/0x?", | 56 "leveldb/value_store/Extensions.Database.Open.Settings/0x?", |
| 56 "leveldb/value_store/Extensions.Database.Open.Rules/0x?", | 57 "leveldb/value_store/Extensions.Database.Open.Rules/0x?", |
| 57 "leveldb/value_store/Extensions.Database.Open.State/0x?", | 58 "leveldb/value_store/Extensions.Database.Open.State/0x?", |
| 58 "leveldb/value_store/Extensions.Database.Open/0x?", | 59 "leveldb/value_store/Extensions.Database.Open/0x?", |
| 59 "leveldb/value_store/Extensions.Database.Restore/0x?", | 60 "leveldb/value_store/Extensions.Database.Restore/0x?", |
| 60 "leveldb/value_store/Extensions.Database.Value.Restore/0x?", | 61 "leveldb/value_store/Extensions.Database.Value.Restore/0x?", |
| 61 "malloc", | 62 "malloc", |
| 62 "malloc/allocated_objects", | 63 "malloc/allocated_objects", |
| 63 "malloc/metadata_fragmentation_caches", | 64 "malloc/metadata_fragmentation_caches", |
| 65 "net/http_network_session_0x?", |
| 66 "net/http_network_session_0x?/quic_stream_factory", |
| 67 "net/http_network_session_0x?/socket_pool", |
| 68 "net/http_network_session_0x?/spdy_session_pool", |
| 69 "net/http_network_session_0x?/stream_factory", |
| 70 "net/sdch_manager_0x?", |
| 71 "net/ssl_session_cache", |
| 72 "net/url_request_context_0x?", |
| 73 "net/url_request_context_0x?/http_cache", |
| 74 "net/url_request_context_0x?/http_network_session", |
| 75 "net/url_request_context_0x?/sdch_manager", |
| 64 "web_cache/Image_resources", | 76 "web_cache/Image_resources", |
| 65 "web_cache/CSS stylesheet_resources", | 77 "web_cache/CSS stylesheet_resources", |
| 66 "web_cache/Script_resources", | 78 "web_cache/Script_resources", |
| 67 "web_cache/XSL stylesheet_resources", | 79 "web_cache/XSL stylesheet_resources", |
| 68 "web_cache/Font_resources", | 80 "web_cache/Font_resources", |
| 69 "web_cache/Other_resources", | 81 "web_cache/Other_resources", |
| 70 "partition_alloc/allocated_objects", | 82 "partition_alloc/allocated_objects", |
| 71 "partition_alloc/partitions", | 83 "partition_alloc/partitions", |
| 72 "partition_alloc/partitions/array_buffer", | 84 "partition_alloc/partitions/array_buffer", |
| 73 "partition_alloc/partitions/buffer", | 85 "partition_alloc/partitions/buffer", |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 void SetDumpProviderWhitelistForTesting(const char* const* list) { | 189 void SetDumpProviderWhitelistForTesting(const char* const* list) { |
| 178 g_dump_provider_whitelist = list; | 190 g_dump_provider_whitelist = list; |
| 179 } | 191 } |
| 180 | 192 |
| 181 void SetAllocatorDumpNameWhitelistForTesting(const char* const* list) { | 193 void SetAllocatorDumpNameWhitelistForTesting(const char* const* list) { |
| 182 g_allocator_dump_name_whitelist = list; | 194 g_allocator_dump_name_whitelist = list; |
| 183 } | 195 } |
| 184 | 196 |
| 185 } // namespace trace_event | 197 } // namespace trace_event |
| 186 } // namespace base | 198 } // namespace base |
| OLD | NEW |