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

Unified Diff: content/app/content_main_runner.cc

Issue 1038453002: Add option to export tracing events to ETW. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thakis@ and thestig@ reviews. Created 5 years, 8 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: content/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index 43c0d006ccadb7f294366c41e4489e00ba5db2f7..6b19e00f9306a5337f679d7f052a399f60694bb7 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -77,6 +77,7 @@
#include <cstring>
#include "base/strings/string_number_conversions.h"
+#include "base/trace_event/trace_event_etw_export_win.h"
#include "ui/base/win/atl_module.h"
#include "ui/gfx/win/dpi.h"
#elif defined(OS_MACOSX)
@@ -632,6 +633,12 @@ class ContentMainRunnerImpl : public ContentMainRunner {
base::trace_event::TraceOptions(
base::trace_event::RECORD_UNTIL_FULL));
}
+#if defined(OS_WIN)
+ // Enable exporting of events to ETW if requested on the command line.
+ if (command_line.HasSwitch(switches::kTraceExportEventsToETW))
+ base::trace_event::TraceEventETWExport::EnableETWExport();
+#endif // OS_WIN
+
#if !defined(OS_ANDROID)
// Android tracing started at the beginning of the method.
// Other OSes have to wait till we get here in order for all the memory

Powered by Google App Engine
This is Rietveld 408576698