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

Unified Diff: base/trace_event/trace_log.cc

Issue 2159323002: Add tracing AutoOpenCloseEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implement new design Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/trace_event/trace_log.cc
diff --git a/base/trace_event/trace_log.cc b/base/trace_event/trace_log.cc
index 1a9af140551254bf6111c54ed4fb2a55d2e50121..451eba08b2cce92cbfc1a5ba811a11e6558ca9a9 100644
--- a/base/trace_event/trace_log.cc
+++ b/base/trace_event/trace_log.cc
@@ -834,7 +834,7 @@ void TraceLog::SetDisabledWhileLocked() {
return;
}
- mode_ = DISABLED;
+ //mode_ = DISABLED;
if (sampling_thread_) {
// Stop the sampling thread.
@@ -867,6 +867,7 @@ void TraceLog::SetDisabledWhileLocked() {
AutoUnlock unlock(lock_);
for (EnabledStateObserver* observer : observer_list)
observer->OnTraceLogDisabled();
+ mode_ = DISABLED;
Primiano Tucci (use gerrit) 2016/09/14 09:38:54 ???
alexandermont 2016/09/14 20:14:57 Reverted this change. Originally this was there be
for (const auto& it : observer_map) {
it.second.task_runner->PostTask(
FROM_HERE, Bind(&AsyncEnabledStateObserver::OnTraceLogDisabled,

Powered by Google App Engine
This is Rietveld 408576698