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

Unified Diff: cc/output/latency_info_swap_promise.cc

Issue 1239593002: Implement a new flow event API that allows binding flow events and regular events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add support for flow steps. Created 5 years, 5 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: cc/output/latency_info_swap_promise.cc
diff --git a/cc/output/latency_info_swap_promise.cc b/cc/output/latency_info_swap_promise.cc
index 5e08470fb07bcf489f9a0074befdc27a6529958a..3c4176a8f0dbd32694bce6fa87dc847e6a99d95d 100644
--- a/cc/output/latency_info_swap_promise.cc
+++ b/cc/output/latency_info_swap_promise.cc
@@ -52,6 +52,9 @@ int64 LatencyInfoSwapPromise::TraceId() const {
// Trace the original LatencyInfo of a LatencyInfoSwapPromise
void LatencyInfoSwapPromise::OnCommit() {
+ TRACE_EVENT_WITH_FLOW0("toplevel", "LatencyInfoSwapPromise::OnCommit",
+ TRACE_ID_DONT_MANGLE(TraceId()),
+ TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT);
TRACE_EVENT_FLOW_STEP0("input,benchmark", "LatencyInfo.Flow",
TRACE_ID_DONT_MANGLE(TraceId()),
"HanldeInputEventMainCommit");

Powered by Google App Engine
This is Rietveld 408576698