forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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) Review URL: https://codereview.chromium.org/66193005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236078 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
wangxianzhu@chromium.org
committed
Nov 20, 2013
1 parent
71aec4b
commit dd37ea1
Showing
8 changed files
with
325 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.