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

Unified Diff: ui/latency/latency_info.h

Issue 2954473002: Record accuracy of expected queueing time metric. (Closed)
Patch Set: Set trace ID in test. 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
« no previous file with comments | « ui/latency/ipc/latency_info_param_traits.cc ('k') | ui/latency/latency_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/latency/latency_info.h
diff --git a/ui/latency/latency_info.h b/ui/latency/latency_info.h
index 2dcf550ec3823b3519275847d26b477f7c050886..218dce92fdb0de81ddbbdc84b26b45c809511b0c 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 began() const { return began_; }
bool terminated() const { return terminated_; }
void set_coalesced() { coalesced_ = true; }
@@ -243,6 +252,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>;
« no previous file with comments | « ui/latency/ipc/latency_info_param_traits.cc ('k') | ui/latency/latency_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698