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

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 protected and be called from WillCommit. 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
« no previous file with comments | « cc/output/latency_info_swap_promise.h ('k') | cc/output/swap_promise.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5e08470fb07bcf489f9a0074befdc27a6529958a 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,11 @@ int64 LatencyInfoSwapPromise::TraceId() const {
return latency_.trace_id;
}
+// Trace the original LatencyInfo of a LatencyInfoSwapPromise
+void LatencyInfoSwapPromise::OnCommit() {
+ TRACE_EVENT_FLOW_STEP0("input,benchmark", "LatencyInfo.Flow",
+ TRACE_ID_DONT_MANGLE(TraceId()),
+ "HanldeInputEventMainCommit");
+}
+
} // namespace cc
« no previous file with comments | « cc/output/latency_info_swap_promise.h ('k') | cc/output/swap_promise.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698