Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Issue 9443020: Use SequencedWorkerPool for disk operations in TraceSubscriberStdio. (Closed)

Created:
8 years, 10 months ago by Iain Merrick
Modified:
8 years, 10 months ago
CC:
chromium-reviews, kkania, jam, joi+watch-content_chromium.org, robertshield, brettw-cc_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

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

Patch Set 1 #

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

Messages

Total messages: 9 (0 generated)
Iain Merrick
This is a repeat of http://codereview.chromium.org/9333003/, which got reverted due to a build error on ...
8 years, 10 months ago (2012-02-23 17:59:16 UTC) #1
willchan no longer on Chromium
LGTM Btw, in the future, you can help reviewers by, before making any changes to ...
8 years, 10 months ago (2012-02-23 18:04:38 UTC) #2
Iain Merrick
Aha, I was wondering. I figured I should upload it to the original issue but ...
8 years, 10 months ago (2012-02-23 18:07:20 UTC) #3
jam
lgtm
8 years, 10 months ago (2012-02-23 19:24:18 UTC) #4
James Hawkins
LGTM
8 years, 10 months ago (2012-02-23 21:06:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/husky@chromium.org/9443020/1
8 years, 10 months ago (2012-02-23 21:49:48 UTC) #6
commit-bot: I haz the power
Try job failure for 9443020-1 (retry) on win_rel for step "ui_tests". It's a second try, ...
8 years, 10 months ago (2012-02-24 01:06:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/husky@chromium.org/9443020/1
8 years, 10 months ago (2012-02-24 01:38:13 UTC) #8
commit-bot: I haz the power
8 years, 10 months ago (2012-02-24 04:17:09 UTC) #9
Change committed as 123433

Powered by Google App Engine
This is Rietveld 408576698