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

Issue 66893003: Allow TracingController to output trace data to specified file (Closed)

Created:
7 years, 1 month ago by Xianzhu
Modified:
7 years, 1 month ago
Reviewers:
dsinclair, nduca, Jói
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dsinclair+watch_chromium.org, jam
Visibility:
Public.

Description

Allow TracingController output trace data to specified file Sometimes we need to let TracingController output traces to specified file, e.g. trace-startup (which will be migrated from TraceController to TracingController). Also fixed the problem of IO operations in UI thread. BUG=none TEST=TracingControllerTest.EnableAndDisableRecordingWithFilePath TEST=TracingControllerTest.EnableCaptureAndDisableMonitoringWithFilePath R=joi@chromium.org, nduca@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236071

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : FilePath parameter in DisableRecording #

Patch Set 4 : Rebase #

Patch Set 5 : Avoid allowIO by posting tasks #

Total comments: 10

Patch Set 6 : #

Patch Set 7 : #

Total comments: 5

Patch Set 8 : can_disable_recording #

Patch Set 9 : Removed unnecessary include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -136 lines) Patch
M content/browser/tracing/trace_message_filter.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/tracing/tracing_controller_browsertest.cc View 1 2 5 chunks +137 lines, -68 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.h View 1 2 3 4 5 6 7 8 chunks +17 lines, -13 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.cc View 1 2 3 4 5 6 7 8 10 chunks +134 lines, -51 lines 0 comments Download
M content/public/browser/tracing_controller.h View 1 2 3 4 5 6 2 chunks +17 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Xianzhu
7 years, 1 month ago (2013-11-08 21:57:03 UTC) #1
Xianzhu
ping...
7 years, 1 month ago (2013-11-12 16:38:45 UTC) #2
Xianzhu
nduca@, as dsinclair@ is on vacation, could you have a look at this CL (and ...
7 years, 1 month ago (2013-11-13 17:01:19 UTC) #3
nduca
lgtm
7 years, 1 month ago (2013-11-15 23:12:25 UTC) #4
dsinclair
https://codereview.chromium.org/66893003/diff/180001/content/browser/tracing/tracing_controller_impl.cc File content/browser/tracing/tracing_controller_impl.cc (right): https://codereview.chromium.org/66893003/diff/180001/content/browser/tracing/tracing_controller_impl.cc#newcode55 content/browser/tracing/tracing_controller_impl.cc:55: bool has_at_least_one_result_; Should this be DISALLOW_COPY_AND_ASSIGN? https://codereview.chromium.org/66893003/diff/180001/content/browser/tracing/tracing_controller_impl.cc#newcode77 content/browser/tracing/tracing_controller_impl.cc:77: size_t ...
7 years, 1 month ago (2013-11-18 16:32:18 UTC) #5
Xianzhu
And +joi@ for content/public/browser/tracing_controller.h. https://codereview.chromium.org/66893003/diff/180001/content/browser/tracing/tracing_controller_impl.cc File content/browser/tracing/tracing_controller_impl.cc (right): https://codereview.chromium.org/66893003/diff/180001/content/browser/tracing/tracing_controller_impl.cc#newcode55 content/browser/tracing/tracing_controller_impl.cc:55: bool has_at_least_one_result_; On 2013/11/18 16:32:18, ...
7 years, 1 month ago (2013-11-18 21:50:38 UTC) #6
Xianzhu
https://codereview.chromium.org/66893003/diff/180001/content/public/browser/tracing_controller.h File content/public/browser/tracing_controller.h (right): https://codereview.chromium.org/66893003/diff/180001/content/public/browser/tracing_controller.h#newcode82 content/public/browser/tracing_controller.h:82: // If |result_file_path| is empty and |callback| is null, ...
7 years, 1 month ago (2013-11-18 21:56:09 UTC) #7
Jói
https://codereview.chromium.org/66893003/diff/350001/content/browser/tracing/tracing_controller_impl.cc File content/browser/tracing/tracing_controller_impl.cc (right): https://codereview.chromium.org/66893003/diff/350001/content/browser/tracing/tracing_controller_impl.cc#newcode196 content/browser/tracing/tracing_controller_impl.cc:196: result_file_.reset(new ResultFile(result_file_path)); Do you not need to close the ...
7 years, 1 month ago (2013-11-19 12:42:22 UTC) #8
Xianzhu
PTAL. https://codereview.chromium.org/66893003/diff/350001/content/browser/tracing/tracing_controller_impl.cc File content/browser/tracing/tracing_controller_impl.cc (right): https://codereview.chromium.org/66893003/diff/350001/content/browser/tracing/tracing_controller_impl.cc#newcode196 content/browser/tracing/tracing_controller_impl.cc:196: result_file_.reset(new ResultFile(result_file_path)); On 2013/11/19 12:42:22, Jói wrote: > ...
7 years, 1 month ago (2013-11-19 16:48:34 UTC) #9
Jói
LGTM
7 years, 1 month ago (2013-11-19 16:50:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/66893003/430001
7 years, 1 month ago (2013-11-19 18:23:22 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=176304
7 years, 1 month ago (2013-11-19 20:51:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/66893003/430001
7 years, 1 month ago (2013-11-19 21:06:06 UTC) #13
Xianzhu
7 years, 1 month ago (2013-11-19 23:52:41 UTC) #14
Message was sent while issue was closed.
Committed patchset #9 manually as r236071 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698