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

Unified Diff: base/debug/trace_event_win.h

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_win.h
diff --git a/base/debug/trace_event_win.h b/base/debug/trace_event_win.h
index 2a900bb4314f055b67a24bfea4bcdc766a569424..c74c3a721adb22924ecdc8c981f4e8be56482a7d 100644
--- a/base/debug/trace_event_win.h
+++ b/base/debug/trace_event_win.h
@@ -10,6 +10,7 @@
#include "base/base_export.h"
#include "base/debug/trace_event.h"
+#include "base/memory/scoped_ptr.h"
#include "base/win/event_trace_provider.h"
// Fwd.
@@ -58,6 +59,19 @@ class BASE_EXPORT TraceEventETWProvider : public base::win::EtwTraceProvider {
return Trace(name, -1, type, id, extra, -1);
}
+ // Allows passing extra as a set of arguments that will be converted to
+ // a string.
chrisha 2013/09/05 20:21:30 This is a complicated call. Worth documenting the
fdoray 2013/09/08 18:35:50 Done.
+ static void TraceWithArgs(
+ const char* category_group,
+ const char* name,
+ char type,
+ const void* id,
+ int num_args,
+ const char** arg_names,
+ const unsigned char* arg_types,
+ const unsigned long long* arg_values,
+ scoped_ptr<ConvertableToTraceFormat> convertable_values[]);
+
// Retrieves the singleton.
// Note that this may return NULL post-AtExit processing.
static TraceEventETWProvider* GetInstance();

Powered by Google App Engine
This is Rietveld 408576698