|
Use SequencedWorkerPool for disk operations in TraceSubscriberStdio.
This class was hitting a ThreadRestrictions assert because it called
OpenFile on the UI thread. To reduce unnecessary copying, I've changed
the OnTraceDataCollected argument from std::string to RefCountedString.
Second attempt (originally committed in 123140, reverted in 123146).
Added DISALLOW_COPY_AND_ASSIGN to fix Windows compilation error.
BUG=None
TEST=content_unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123433
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+138 lines, -122 lines) |
Patch |
|
M |
base/debug/trace_event_impl.h
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
base/debug/trace_event_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
base/debug/trace_event_unittest.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
base/test/trace_event_analyzer_unittest.cc
|
View
|
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/automation/automation_provider.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/automation/automation_provider.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/tracing_ui.cc
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/test/base/tracing.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/trace_controller.h
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/trace_controller.cc
|
View
|
|
4 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
|
M |
content/browser/trace_message_filter.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/trace_subscriber_stdio.h
|
View
|
|
1 chunk |
+11 lines, -16 lines |
0 comments
|
Download
|
|
M |
content/browser/trace_subscriber_stdio.cc
|
View
|
|
1 chunk |
+74 lines, -40 lines |
0 comments
|
Download
|
|
M |
content/browser/trace_subscriber_stdio_unittest.cc
|
View
|
|
1 chunk |
+21 lines, -27 lines |
0 comments
|
Download
|
|
M |
content/common/child_trace_message_filter.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
content/common/child_trace_message_filter.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|