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

Issue 66193005: Independently enable recording and event callback (Closed)

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

Description

Independently enable recording and event callback Previously we count TraceLog::SetEnabled() and SetDisabled() to allow nested calls from about:tracing and Timeline panel of the DevTools. Actually DevTools only needs the event callbacks, so we can allow the two features (recording for about:tracing, event callback for DevTools) to be independently enabled. Also don't count TraceLog::SetEnabled() and SetDisabled() to ease trace-startup and simplify the API semantics. BUG=none TEST=TraceEventCallbackTest.TraceEventCallbackAndRecording*, TraceEventTestFixture.* R=caseq@chromium.org, nduca@chromium.org, pfeldman@chromium.org, tony@chromium.org TBR=sky (for trivial call site change in content/browser/browser_shutdown_profile_dumper.cc) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236078

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : SetEventCallbackEnabled #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : default categories #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -116 lines) Patch
M base/debug/trace_event.h View 1 2 5 chunks +9 lines, -2 lines 0 comments Download
M base/debug/trace_event_impl.h View 1 2 3 4 8 chunks +39 lines, -19 lines 0 comments Download
M base/debug/trace_event_impl.cc View 1 2 3 4 5 16 chunks +88 lines, -56 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 2 8 chunks +169 lines, -32 lines 0 comments Download
M content/browser/browser_shutdown_profile_dumper.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/devtools/devtools_agent.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M webkit/child/webkitplatformsupport_impl.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/child/webkitplatformsupport_impl.cc View 1 2 1 chunk +10 lines, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
Xianzhu
7 years, 1 month ago (2013-11-08 18:53:17 UTC) #1
Xianzhu
ping...
7 years, 1 month ago (2013-11-12 16:39:57 UTC) #2
nduca
The reason for nestign is because devtools needs to be able to enable tracing when ...
7 years, 1 month ago (2013-11-15 23:11:07 UTC) #3
Xianzhu
Considering 4 cases: 1. DevTools start; about:tracing start; DevTools stop; about:tracing stop 2. DevTools start; ...
7 years, 1 month ago (2013-11-16 00:50:36 UTC) #4
nduca
There are valid scenarios where we want both running at once, without information lost, I'm ...
7 years, 1 month ago (2013-11-16 01:26:53 UTC) #5
Xianzhu
On 2013/11/16 01:26:53, nduca wrote: > There are valid scenarios where we want both running ...
7 years, 1 month ago (2013-11-18 17:10:36 UTC) #6
Xianzhu
On 2013/11/18 17:10:36, Xianzhu wrote: > On 2013/11/16 01:26:53, nduca wrote: > > There are ...
7 years, 1 month ago (2013-11-18 17:10:56 UTC) #7
Xianzhu
PTAL. Now allow EventCallback and recording to be enabled independently. Please also see the updated ...
7 years, 1 month ago (2013-11-18 20:30:36 UTC) #8
Xianzhu
+pfeldman@: for content/renderer/devtools +tony: for webkit/child
7 years, 1 month ago (2013-11-19 17:02:01 UTC) #9
pfeldman
devtools lgtm
7 years, 1 month ago (2013-11-19 17:26:33 UTC) #10
nduca
lgtm i think. lets have @caseq double check. Thank you for making this change.
7 years, 1 month ago (2013-11-19 17:52:37 UTC) #11
tony
webkit/child LGTM
7 years, 1 month ago (2013-11-19 18:18:56 UTC) #12
caseq
https://codereview.chromium.org/66193005/diff/180001/base/debug/trace_event_impl.h File base/debug/trace_event_impl.h (right): https://codereview.chromium.org/66193005/diff/180001/base/debug/trace_event_impl.h#newcode468 base/debug/trace_event_impl.h:468: // For TRACE_EVENT_PHASE_COMPLETE events, the/ client will still receive ...
7 years, 1 month ago (2013-11-19 18:32:29 UTC) #13
dsinclair
https://codereview.chromium.org/66193005/diff/180001/content/renderer/devtools/devtools_agent.cc File content/renderer/devtools/devtools_agent.cc (right): https://codereview.chromium.org/66193005/diff/180001/content/renderer/devtools/devtools_agent.cc#newcode144 content/renderer/devtools/devtools_agent.cc:144: trace_log->SetEventCallbackEnabled(base::debug::CategoryFilter(""), On 2013/11/19 18:32:29, caseq wrote: > Why did ...
7 years, 1 month ago (2013-11-19 18:39:10 UTC) #14
Xianzhu
https://codereview.chromium.org/66193005/diff/180001/base/debug/trace_event_impl.h File base/debug/trace_event_impl.h (right): https://codereview.chromium.org/66193005/diff/180001/base/debug/trace_event_impl.h#newcode468 base/debug/trace_event_impl.h:468: // For TRACE_EVENT_PHASE_COMPLETE events, the/ client will still receive ...
7 years, 1 month ago (2013-11-19 18:39:21 UTC) #15
caseq
On 2013/11/19 18:39:21, Xianzhu wrote: > https://codereview.chromium.org/66193005/diff/180001/base/debug/trace_event_impl.h > File base/debug/trace_event_impl.h (right): > > https://codereview.chromium.org/66193005/diff/180001/base/debug/trace_event_impl.h#newcode468 > ...
7 years, 1 month ago (2013-11-19 19:02:46 UTC) #16
Xianzhu
On 2013/11/19 19:02:46, caseq wrote: > > Ah, indeed! I can see it does now, ...
7 years, 1 month ago (2013-11-19 19:11:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/66193005/270001
7 years, 1 month ago (2013-11-19 19:26:28 UTC) #18
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=37015
7 years, 1 month ago (2013-11-19 20:10:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/66193005/450002
7 years, 1 month ago (2013-11-19 20:11:11 UTC) #20
tony
The presubmit error is: Missing LGTM from an OWNER for these files: content/browser/browser_shutdown_profile_dumper.cc I think ...
7 years, 1 month ago (2013-11-19 20:14:29 UTC) #21
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=37027
7 years, 1 month ago (2013-11-19 20:38:05 UTC) #22
Xianzhu
On 2013/11/19 20:14:29, tony wrote: > The presubmit error is: > > Missing LGTM from ...
7 years, 1 month ago (2013-11-19 20:39:28 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/66193005/450002
7 years, 1 month ago (2013-11-19 20:44:17 UTC) #24
Xianzhu
7 years, 1 month ago (2013-11-20 00:40:55 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 manually as r236078 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698