|
Refactor tracing to pass around base::debug::TraceOptions to reduce spaghetti
Previously, the options for tracing were passed around with different ad hoc
systems. Strings in some places, base::debug::TraceOptions enum in others,
and a content::TraceOptions in yet another. There were two separate ad-hoc
string formats. Similar messes were present with category filters: sometimes
we passed strings, sometimes the CategoryFilter.
This patch though enormous looking simply consolidates all this ad-hockery
into base::debug::TraceOptions. It may look like the call sites have gotten
more verbose,
but the end result of this is a consistent understanding of TraceOptions.
There is one exception to this consolidation: devtools has to maintain its own
mapping of string->TraceOptions encoding. This is because DevTools makes
guarantees about backward compatibility: if base changes its mind about the
string form of a TraceOption, devtools needs to keep supporting the old form.
BUG= 396081
TBR=cevans@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287348
Total comments: 20
Total comments: 12
Total comments: 4
Total comments: 79
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+703 lines, -376 lines) |
Patch |
|
M |
base/debug/trace_event_android.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
base/debug/trace_event_impl.h
|
View
|
1
2
3
4
5
6
7
|
10 chunks |
+73 lines, -21 lines |
0 comments
|
Download
|
|
M |
base/debug/trace_event_impl.cc
|
View
|
1
2
3
4
5
6
7
|
13 chunks |
+114 lines, -14 lines |
0 comments
|
Download
|
|
M |
base/debug/trace_event_impl_constants.cc
|
View
|
1
2
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/debug/trace_event_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
49 chunks |
+275 lines, -141 lines |
0 comments
|
Download
|
|
M |
base/test/trace_event_analyzer_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/lifetime/application_lifetime.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/test/base/tracing.cc
|
View
|
1
2
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
components/feedback/tracing_manager.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
components/tracing/child_trace_message_filter.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
components/tracing/child_trace_message_filter.cc
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
components/tracing/tracing_messages.h
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/app/android/library_loader_hooks.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/app/content_main_runner.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/android/tracing_controller_android.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/android/tracing_controller_android.cc
|
View
|
1
2
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/devtools/devtools_tracing_handler.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/devtools/devtools_tracing_handler.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+15 lines, -11 lines |
0 comments
|
Download
|
|
M |
content/browser/media/webrtc_getusermedia_browsertest.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/tracing/trace_message_filter.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/tracing/trace_message_filter.cc
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
content/browser/tracing/tracing_controller_browsertest.cc
|
View
|
1
2
3
4
5
6
7
|
8 chunks |
+41 lines, -28 lines |
0 comments
|
Download
|
|
M |
content/browser/tracing/tracing_controller_impl.h
|
View
|
1
2
3
4
|
3 chunks |
+19 lines, -16 lines |
0 comments
|
Download
|
|
M |
content/browser/tracing/tracing_controller_impl.cc
|
View
|
1
2
3
4
|
13 chunks |
+30 lines, -41 lines |
0 comments
|
Download
|
|
M |
content/browser/tracing/tracing_ui.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+48 lines, -37 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/client/gl_helper_unittest.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/public/android/java/src/org/chromium/content/browser/TracingControllerAndroid.java
|
View
|
1
2
3
4
5
|
6 chunks |
+15 lines, -14 lines |
0 comments
|
Download
|
|
M |
content/public/android/javatests/src/org/chromium/content/browser/TracingControllerAndroidTest.java
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/public/browser/tracing_controller.h
|
View
|
1
2
3
4
|
5 chunks |
+9 lines, -13 lines |
0 comments
|
Download
|
|
M |
content/renderer/devtools/devtools_agent.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 40 (0 generated)
|