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

Unified Diff: ui/latency/latency_info.h

Issue 2954473002: Record accuracy of expected queueing time metric. (Closed)
Patch Set: Fix include. Created 3 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/latency/latency_info.h
diff --git a/ui/latency/latency_info.h b/ui/latency/latency_info.h
index 0f8b6be29ff6b45f316635ff3f9ee88a84281872..1e67f89078dfdf72c3deb661a9bc5c6453596e66 100644
--- a/ui/latency/latency_info.h
+++ b/ui/latency/latency_info.h
@@ -208,6 +208,15 @@ class LatencyInfo {
source_event_type_ = type;
}
+ void set_expected_queueing_time_on_dispatch(
+ base::TimeDelta expected_queueing_time) {
+ expected_queueing_time_on_dispatch_ = expected_queueing_time;
+ }
+
+ base::TimeDelta expected_queueing_time_on_dispatch() const {
+ return expected_queueing_time_on_dispatch_;
+ }
+
bool terminated() const { return terminated_; }
void set_coalesced() { coalesced_ = true; }
bool coalesced() const { return coalesced_; }
@@ -239,6 +248,9 @@ class LatencyInfo {
bool terminated_;
// Stores the type of the first source event.
SourceEventType source_event_type_;
+ // The expected queueing time on the main thread when this event was
+ // dispatched.
+ base::TimeDelta expected_queueing_time_on_dispatch_;
#if !defined(OS_IOS)
friend struct IPC::ParamTraits<ui::LatencyInfo>;

Powered by Google App Engine
This is Rietveld 408576698