DescriptionIndependently 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 : #
Messages
Total messages: 25 (0 generated)
|