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

Issue 1765153002: Update DevTools Tracing.Start to accept trace config as a parameter (Closed)

Created:
4 years, 9 months ago by Zhen Wang
Modified:
4 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, caseq+blink_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org, blink-reviews, jam, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, mkwst+moarreviews-renderer_chromium.org, dglazkov+blink, darin-cc_chromium.org, devtools-reviews_chromium.org, tracing+reviews_chromium.org, apavlov+blink_chromium.org, sergeyv+blink_chromium.org, blink-reviews-api_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org, rnephew (Reviews Here), fmeawad, petrcermak, lpy
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update DevTools Tracing.Start to accept trace config as a parameter This CL updates Tracing.Start to accept trace config as a parameter when starting tracing. It is backward compatible with the old way. Design doc: https://goo.gl/GxQ23k BUG=579358 Committed: https://crrev.com/c0e3792f832fc454324dbe35d01079b124b072cd Cr-Commit-Position: refs/heads/master@{#381783}

Patch Set 1 #

Total comments: 16

Patch Set 2 : review fix #

Patch Set 3 : add test #

Total comments: 3

Patch Set 4 : fix link error #

Total comments: 14

Patch Set 5 : review fix #

Patch Set 6 : #

Total comments: 53

Patch Set 7 : review fix for primiano and petrcermak's comments #

Total comments: 23

Patch Set 8 : review fix #

Total comments: 16

Patch Set 9 : rebase #

Patch Set 10 : inline enum #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -38 lines) Patch
M base/trace_event/trace_config.h View 1 2 3 4 5 6 2 chunks +8 lines, -1 line 0 comments Download
M base/trace_event/trace_config.cc View 1 2 3 4 5 6 3 chunks +30 lines, -19 lines 0 comments Download
M base/trace_event/trace_config_unittest.cc View 1 2 3 4 5 6 7 3 chunks +63 lines, -0 lines 0 comments Download
M components/tracing/trace_config_file.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -4 lines 0 comments Download
M content/browser/devtools/protocol/tracing_handler.h View 1 2 3 4 5 6 4 chunks +9 lines, -1 line 0 comments Download
M content/browser/devtools/protocol/tracing_handler.cc View 1 2 3 4 5 6 4 chunks +78 lines, -8 lines 0 comments Download
A content/browser/devtools/protocol/tracing_handler_unittest.cc View 1 2 3 4 5 6 1 chunk +73 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTracingAgent.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTracingAgent.cpp View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/protocol.json View 1 2 3 4 5 6 7 8 9 1 chunk +37 lines, -3 lines 0 comments Download

Messages

Total messages: 43 (13 generated)
Zhen Wang
ptal
4 years, 9 months ago (2016-03-04 23:22:48 UTC) #3
caseq
https://codereview.chromium.org/1765153002/diff/1/base/trace_event/trace_config.cc File base/trace_event/trace_config.cc (right): https://codereview.chromium.org/1765153002/diff/1/base/trace_event/trace_config.cc#newcode77 base/trace_event/trace_config.cc:77: const char& separator) { no need to pass a ...
4 years, 9 months ago (2016-03-05 02:25:25 UTC) #4
Primiano Tucci (use gerrit)
Some delta comments on top of caseq's https://codereview.chromium.org/1765153002/diff/1/base/trace_event/trace_config.cc File base/trace_event/trace_config.cc (right): https://codereview.chromium.org/1765153002/diff/1/base/trace_event/trace_config.cc#newcode76 base/trace_event/trace_config.cc:76: std::string convertStringStyle(const ...
4 years, 9 months ago (2016-03-06 01:24:37 UTC) #5
Zhen Wang
I uploaded a fix based on caseq and primiano's comments. Please take a look. https://codereview.chromium.org/1765153002/diff/40001/content/browser/devtools/protocol/tracing_handler_unittest.cc ...
4 years, 9 months ago (2016-03-08 00:41:52 UTC) #6
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1765153002/diff/40001/content/browser/devtools/protocol/tracing_handler_unittest.cc File content/browser/devtools/protocol/tracing_handler_unittest.cc (right): https://codereview.chromium.org/1765153002/diff/40001/content/browser/devtools/protocol/tracing_handler_unittest.cc#newcode66 content/browser/devtools/protocol/tracing_handler_unittest.cc:66: TracingHandler::GetTraceConfigFromDevtoolsConfig(*devtools_style_dict); On 2016/03/08 00:41:52, Zhen Wang wrote: > Andrey, ...
4 years, 9 months ago (2016-03-08 21:30:12 UTC) #7
Zhen Wang
https://codereview.chromium.org/1765153002/diff/40001/content/browser/devtools/protocol/tracing_handler_unittest.cc File content/browser/devtools/protocol/tracing_handler_unittest.cc (right): https://codereview.chromium.org/1765153002/diff/40001/content/browser/devtools/protocol/tracing_handler_unittest.cc#newcode66 content/browser/devtools/protocol/tracing_handler_unittest.cc:66: TracingHandler::GetTraceConfigFromDevtoolsConfig(*devtools_style_dict); On 2016/03/08 21:30:12, Primiano wrote: > On 2016/03/08 ...
4 years, 9 months ago (2016-03-08 22:09:40 UTC) #8
Zhen Wang
ping :)
4 years, 9 months ago (2016-03-10 17:06:53 UTC) #9
caseq
lgtm https://codereview.chromium.org/1765153002/diff/60001/content/browser/devtools/protocol/tracing_handler.cc File content/browser/devtools/protocol/tracing_handler.cc (right): https://codereview.chromium.org/1765153002/diff/60001/content/browser/devtools/protocol/tracing_handler.cc#newcode38 content/browser/devtools/protocol/tracing_handler.cc:38: const char separator) { nit: nuke const from ...
4 years, 9 months ago (2016-03-12 00:13:33 UTC) #10
caseq
https://codereview.chromium.org/1765153002/diff/60001/third_party/WebKit/Source/devtools/protocol.json File third_party/WebKit/Source/devtools/protocol.json (right): https://codereview.chromium.org/1765153002/diff/60001/third_party/WebKit/Source/devtools/protocol.json#newcode4862 third_party/WebKit/Source/devtools/protocol.json:4862: { "name": "memoryDumpConfig", "$ref": "Tracing.MemoryDumpConfig", "optional": true, "description": "The ...
4 years, 9 months ago (2016-03-12 00:33:33 UTC) #11
Zhen Wang
https://codereview.chromium.org/1765153002/diff/60001/content/browser/devtools/protocol/tracing_handler.cc File content/browser/devtools/protocol/tracing_handler.cc (right): https://codereview.chromium.org/1765153002/diff/60001/content/browser/devtools/protocol/tracing_handler.cc#newcode38 content/browser/devtools/protocol/tracing_handler.cc:38: const char separator) { On 2016/03/12 00:13:32, caseq wrote: ...
4 years, 9 months ago (2016-03-13 18:17:06 UTC) #12
Zhen Wang
Primiano, can you take a look at trace_config.[cc|h] again? :)
4 years, 9 months ago (2016-03-14 15:25:37 UTC) #13
Primiano Tucci (use gerrit)
Many thanks for the work, the layering looks great in this patchset. I have some ...
4 years, 9 months ago (2016-03-14 16:53:02 UTC) #14
Primiano Tucci (use gerrit)
+petrcermak, can you take a look to this to see if everything looks sane to ...
4 years, 9 months ago (2016-03-14 16:54:24 UTC) #16
petrcermak
Looks good overall. Here's just a couple of comments. One patch title and description nit: ...
4 years, 9 months ago (2016-03-14 18:05:09 UTC) #17
Zhen Wang
I have uploaded a new patch according to primiano and petrcermak's comments. ptal https://codereview.chromium.org/1765153002/diff/100001/base/trace_event/trace_config.cc File ...
4 years, 9 months ago (2016-03-14 21:41:46 UTC) #18
petrcermak
LGTM with a couple more nits. Please wait for Primiano to do his final pass. ...
4 years, 9 months ago (2016-03-15 12:15:08 UTC) #20
Primiano Tucci (use gerrit)
LGTM with 2 final comments (please look at them) https://codereview.chromium.org/1765153002/diff/120001/base/trace_event/trace_config_unittest.cc File base/trace_event/trace_config_unittest.cc (right): https://codereview.chromium.org/1765153002/diff/120001/base/trace_event/trace_config_unittest.cc#newcode298 base/trace_event/trace_config_unittest.cc:298: ...
4 years, 9 months ago (2016-03-15 12:22:42 UTC) #21
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1765153002/diff/120001/third_party/WebKit/Source/devtools/protocol.json File third_party/WebKit/Source/devtools/protocol.json (right): https://codereview.chromium.org/1765153002/diff/120001/third_party/WebKit/Source/devtools/protocol.json#newcode4838 third_party/WebKit/Source/devtools/protocol.json:4838: "description": "Option that determines how to trigger memory dumps." ...
4 years, 9 months ago (2016-03-15 15:36:53 UTC) #22
Zhen Wang
https://codereview.chromium.org/1765153002/diff/100001/content/browser/devtools/protocol/tracing_handler.h File content/browser/devtools/protocol/tracing_handler.h (right): https://codereview.chromium.org/1765153002/diff/100001/content/browser/devtools/protocol/tracing_handler.h#newcode80 content/browser/devtools/protocol/tracing_handler.h:80: GetTraceConfigFromDevtoolsConfig( On 2016/03/15 12:15:07, petrcermak wrote: > On 2016/03/14 ...
4 years, 9 months ago (2016-03-15 16:53:55 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765153002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765153002/140001
4 years, 9 months ago (2016-03-15 17:04:07 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/157186)
4 years, 9 months ago (2016-03-15 17:14:33 UTC) #29
Zhen Wang
+simonhatch for components/tracing/trace_config_file.cc +pfeldman for devtools
4 years, 9 months ago (2016-03-15 17:20:48 UTC) #31
pfeldman
https://codereview.chromium.org/1765153002/diff/140001/third_party/WebKit/Source/devtools/protocol.json File third_party/WebKit/Source/devtools/protocol.json (right): https://codereview.chromium.org/1765153002/diff/140001/third_party/WebKit/Source/devtools/protocol.json#newcode4829 third_party/WebKit/Source/devtools/protocol.json:4829: "id": "RecordMode", Inline enum, call property "bufferType". https://codereview.chromium.org/1765153002/diff/140001/third_party/WebKit/Source/devtools/protocol.json#newcode4835 third_party/WebKit/Source/devtools/protocol.json:4835: ...
4 years, 9 months ago (2016-03-15 18:03:54 UTC) #32
shatch
components/tracing/trace_config_file.cc lgtm
4 years, 9 months ago (2016-03-15 18:11:30 UTC) #33
Zhen Wang
Hi Pavel, As we discussed offline, the names of the properties come from the trace ...
4 years, 9 months ago (2016-03-17 03:58:15 UTC) #34
pfeldman
lgtm
4 years, 9 months ago (2016-03-17 18:51:03 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1765153002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1765153002/180001
4 years, 9 months ago (2016-03-17 19:19:41 UTC) #38
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 9 months ago (2016-03-17 20:13:31 UTC) #40
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/c0e3792f832fc454324dbe35d01079b124b072cd Cr-Commit-Position: refs/heads/master@{#381783}
4 years, 9 months ago (2016-03-17 20:15:07 UTC) #42
fgorski
4 years, 9 months ago (2016-03-17 20:52:48 UTC) #43
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/1814043002/ by fgorski@chromium.org.

The reason for reverting is: TraceConfigTest.TraceConfigFromDict fialed

https://build.chromium.org/p/chromium.linux/builders/Cast%20Linux/builds/2128...
https://build.chromium.org/p/chromium.linux/builders/Cast%20Linux/builds/21289.

Powered by Google App Engine
This is Rietveld 408576698