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

Unified Diff: base/debug/trace_event_impl.cc

Issue 23934003: Have all trace points emit to ETW. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 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/debug/trace_event_impl.cc
diff --git a/base/debug/trace_event_impl.cc b/base/debug/trace_event_impl.cc
index f221005750918e4a70949de7f069b41715777145..ae0ca6e10bbe946167c9bf7890667300df3bc74a 100644
--- a/base/debug/trace_event_impl.cc
+++ b/base/debug/trace_event_impl.cc
@@ -1201,6 +1201,13 @@ void TraceLog::AddTraceEventWithThreadIdAndTimestamp(
if (flags & TRACE_EVENT_FLAG_MANGLE_ID)
id ^= process_id_hash_;
+#if defined (OS_WIN)
+ TraceEventETWProvider::TraceWithArgs(
+ GetCategoryGroupName(category_group_enabled), name, phase,
+ reinterpret_cast<void*>(id),
+ num_args, arg_names, arg_types, arg_values, convertable_values);
+#endif
+
#if defined(OS_ANDROID)
SendToATrace(phase, GetCategoryGroupName(category_group_enabled), name, id,
num_args, arg_names, arg_types, arg_values, convertable_values,

Powered by Google App Engine
This is Rietveld 408576698