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

Unified Diff: cc/output/latency_info_swap_promise.cc

Issue 1178963003: Trace main thread commit in flow events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make OnCommitForSwapPromises non pure so that not all the derived classes need to implement it. Created 5 years, 6 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 afc0f2d85023f45ce6c4945c04a856af0cd669fb..861bd9e776263059f93b0373e81d653d2f8c4cf8 100644
--- a/cc/output/latency_info_swap_promise.cc
+++ b/cc/output/latency_info_swap_promise.cc
@@ -5,6 +5,7 @@
#include "cc/output/latency_info_swap_promise.h"
#include "base/logging.h"
+#include "base/trace_event/trace_event.h"
namespace {
ui::LatencyComponentType DidNotSwapReasonToLatencyComponentType(
@@ -49,4 +50,10 @@ int64 LatencyInfoSwapPromise::TraceId() const {
return latency_.trace_id;
}
+void LatencyInfoSwapPromise::OnCommitForSwapPromises() {
+ TRACE_EVENT_FLOW_STEP0("input,benchmark", "LatencyInfo.Flow",
+ TRACE_ID_DONT_MANGLE(TraceId()),
+ "HanldeInputEventMainCommit");
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698