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

Unified Diff: shell/tracer.cc

Issue 1180693002: Update from https://crrev.com/333737 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 6 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
« no previous file with comments | « services/window_manager/focus_controller.h ('k') | skia/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/tracer.cc
diff --git a/shell/tracer.cc b/shell/tracer.cc
index 329360a353cdf1dc10112ecbd620f1deef0b22bf..ad4d9855a3aa2c9e4ff8cb1933da833b2359e834 100644
--- a/shell/tracer.cc
+++ b/shell/tracer.cc
@@ -11,6 +11,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
+#include "base/trace_event/trace_config.h"
#include "base/trace_event/trace_event.h"
namespace shell {
@@ -34,10 +35,10 @@ void Tracer::Start(const std::string& categories,
tracing_ = true;
trace_filename_ = filename;
categories_ = categories;
- base::trace_event::CategoryFilter category_filter(categories);
+ base::trace_event::TraceConfig config(categories,
+ base::trace_event::RECORD_UNTIL_FULL);
base::trace_event::TraceLog::GetInstance()->SetEnabled(
- category_filter, base::trace_event::TraceLog::RECORDING_MODE,
- base::trace_event::TraceOptions(base::trace_event::RECORD_UNTIL_FULL));
+ config, base::trace_event::TraceLog::RECORDING_MODE);
}
void Tracer::DidCreateMessageLoop() {
« no previous file with comments | « services/window_manager/focus_controller.h ('k') | skia/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698