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

Unified Diff: ui/base/latency_info.h

Issue 17757002: Add UMA/Telemetry stats for touch event latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: address various issues Created 7 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: ui/base/latency_info.h
diff --git a/ui/base/latency_info.h b/ui/base/latency_info.h
index 965d0d61f7f71c26f3a7504ab164ca9f42b02bde..2fe9433c882456cb3d33c0445ad2ba4077940f17 100644
--- a/ui/base/latency_info.h
+++ b/ui/base/latency_info.h
@@ -65,6 +65,11 @@ struct UI_EXPORT LatencyInfo {
void Clear();
+ LatencyMap::const_iterator GetLatencyComponent(LatencyComponentType type,
Rick Byers 2013/06/26 21:42:10 Rather than return an iterator, may be easier to u
Yufeng Shen (Slow to review) 2013/06/26 23:02:26 Done.
+ int64 id) const {
+ return latency_components.find(std::make_pair(type, id));
+ }
+
LatencyMap latency_components;
// This represents the final time that a frame is displayed it.

Powered by Google App Engine
This is Rietveld 408576698