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

Unified Diff: base/debug/trace_event.h

Issue 792903003: V8 Sampling Profiler: Collect V8 JitCodeEvents in tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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.h
diff --git a/base/debug/trace_event.h b/base/debug/trace_event.h
index 975403641e0208cd0695f323eb63d9d6c4de8c7e..ab628322e18ecab3e7d329cd83f82e7003c6a9a9 100644
--- a/base/debug/trace_event.h
+++ b/base/debug/trace_event.h
@@ -350,6 +350,20 @@
#define TRACE_EVENT_SET_SAMPLING_STATE(category, name) \
TRACE_EVENT_SET_SAMPLING_STATE_FOR_BUCKET(0, category, name)
+#define TRACE_EVENT_SAMPLE_METADATA0(category, name) \
+ INTERNAL_TRACE_EVENT_ADD(TRACE_EVENT_PHASE_METADATA, category, name, \
+ TRACE_EVENT_FLAG_NONE | TRACE_EVENT_SCOPE_THREAD)
yurys 2015/01/14 13:41:36 TRACE_EVENT_SCOPE_THREAD here and below?
alph 2015/01/14 14:31:10 The flag and scope are different domains, so I spe
+
+#define TRACE_EVENT_SAMPLE_METADATA1(category, name, arg1_name, arg1_val) \
+ INTERNAL_TRACE_EVENT_ADD(TRACE_EVENT_PHASE_METADATA, category, name, \
+ TRACE_EVENT_FLAG_NONE | TRACE_EVENT_SCOPE_THREAD, \
+ arg1_name, arg1_val)
+
+#define TRACE_EVENT_SAMPLE_METADATA2(category, name, arg1_name, arg1_val, \
+ arg2_name, arg2_val) \
+ INTERNAL_TRACE_EVENT_ADD(TRACE_EVENT_PHASE_METADATA, category, name, \
+ TRACE_EVENT_FLAG_NONE | TRACE_EVENT_SCOPE_THREAD, \
+ arg1_name, arg1_val, arg2_name, arg2_val)
// Records a single BEGIN event called "name" immediately, with 0, 1 or 2
// associated arguments. If the category is not enabled, then this
« no previous file with comments | « no previous file | content/renderer/devtools/v8_sampling_profiler.h » ('j') | content/renderer/devtools/v8_sampling_profiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698