|
[tracing] Sanitize process memory dump names for background mode
For background mode:
1. ProcessMemoryDump knows the level of detail.
2. It checks for dump name to be present in whitelist. If not then
returns a dummy mad. The strings are stripped of numbers (ids) and
checked against a whitelist of dump names.
3. Disable creating new dumps just to mark suballocations.
4. Disable creation of global allocator dumps.
5. Disable string attributes in allocator dumps.
Also creates a new whitelist file to handle whitelisting logic.
BUG= 613198
TBR=shess@chromium.org, jochen@chromium.org
Committed: https://crrev.com/448e5edbdae14ce8b983726b9d89d248f3d52d23
Cr-Commit-Position: refs/heads/master@{#397918}
Total comments: 36
Total comments: 29
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+303 lines, -74 lines) |
Patch |
|
M |
base/BUILD.gn
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/trace_event/java_heap_dump_provider_android_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
base/trace_event/memory_allocator_dump.cc
|
View
|
1
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/trace_event/memory_allocator_dump_unittest.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
base/trace_event/memory_dump_manager.h
|
View
|
1
|
3 chunks |
+3 lines, -9 lines |
0 comments
|
Download
|
|
M |
base/trace_event/memory_dump_manager.cc
|
View
|
1
|
8 chunks |
+8 lines, -27 lines |
0 comments
|
Download
|
|
M |
base/trace_event/memory_dump_manager_unittest.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
base/trace_event/memory_dump_provider.h
|
View
|
1
2
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
base/trace_event/memory_dump_request_args.h
|
View
|
1
2
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
A |
base/trace_event/memory_infra_background_whitelist.h
|
View
|
1
2
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
A |
base/trace_event/memory_infra_background_whitelist.cc
|
View
|
1
2
3
|
1 chunk |
+88 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/trace_event/process_memory_dump.h
|
View
|
1
2
|
4 chunks |
+21 lines, -1 line |
0 comments
|
Download
|
|
M |
base/trace_event/process_memory_dump.cc
|
View
|
1
2
3
|
8 chunks |
+39 lines, -3 lines |
0 comments
|
Download
|
|
M |
base/trace_event/process_memory_dump_unittest.cc
|
View
|
1
2
3
|
7 chunks |
+61 lines, -5 lines |
0 comments
|
Download
|
|
M |
base/trace_event/trace_event.gypi
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/trace_event/winheap_dump_provider_win_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
components/tracing/common/graphics_memory_dump_provider_android_unittest.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
components/tracing/common/process_metrics_memory_dump_provider_unittest.cc
|
View
|
1
2
|
4 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/common/discardable_shared_memory_heap_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
gin/v8_isolate_memory_dump_provider_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
skia/ext/skia_memory_dump_provider_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sql/connection_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sql/sql_memory_dump_provider_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProviderTest.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/web_process_memory_dump.cc
|
View
|
1
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
Total messages: 55 (31 generated)
|