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

Unified Diff: ui/events/latency_info.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
« base/trace_event/trace_event_impl.cc ('K') | « ipc/ipc_channel_reader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/latency_info.cc
diff --git a/ui/events/latency_info.cc b/ui/events/latency_info.cc
index 464883bfc688d882c2cb4eb7add9a9fc84a0df50..2e67372e992b1a21a4dd1a2853bc47b33ac558cc 100644
--- a/ui/events/latency_info.cc
+++ b/ui/events/latency_info.cc
@@ -303,6 +303,9 @@ void LatencyInfo::AddLatencyNumberWithTimestampImpl(
ts);
}
+ TRACE_EVENT_WITH_FLOW0("toplevel", "LatencyInfo::AddLatencyNumberWithTimestampImpl",
+ TRACE_ID_DONT_MANGLE(trace_id),
+ TRACE_EVENT_FLAG_FLOW_OUT);
TRACE_EVENT_FLOW_BEGIN1(
"input,benchmark", "LatencyInfo.Flow", TRACE_ID_DONT_MANGLE(trace_id),
"trace_id", trace_id);
@@ -339,6 +342,9 @@ void LatencyInfo::AddLatencyNumberWithTimestampImpl(
"data", AsTraceableData(*this));
}
+ TRACE_EVENT_WITH_FLOW0("toplevel", "LatencyInfo::AddLatencyNumberWithTimestampImpl",
+ TRACE_ID_DONT_MANGLE(trace_id),
+ TRACE_EVENT_FLAG_FLOW_IN);
TRACE_EVENT_FLOW_END_BIND_TO_ENCLOSING0(
"input,benchmark", "LatencyInfo.Flow", TRACE_ID_DONT_MANGLE(trace_id));
}
« base/trace_event/trace_event_impl.cc ('K') | « ipc/ipc_channel_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698