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

Unified Diff: net/nqe/network_quality_estimator.h

Issue 2107243003: NQE: Record correlation metric in UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed kundaji's comments Created 4 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 | « no previous file | net/nqe/network_quality_estimator.cc » ('j') | net/nqe/network_quality_estimator.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_estimator.h
diff --git a/net/nqe/network_quality_estimator.h b/net/nqe/network_quality_estimator.h
index c13ae601061a48b6c536a81b12f53ba7cc71ba39..410119f0b20de15d264708944c31731caca4e308 100644
--- a/net/nqe/network_quality_estimator.h
+++ b/net/nqe/network_quality_estimator.h
@@ -502,6 +502,11 @@ class NET_EXPORT_PRIVATE NetworkQualityEstimator
void RecordExternalEstimateProviderMetrics(
NQEExternalEstimateProviderStatus status) const;
+ // Records correlation metric that can be used for computing the correlation
bengr 2016/07/08 16:49:52 Records -> Records a HTTP -> HTTP-layer transport
tbansal1 2016/07/08 17:45:51 Done.
+ // between HTTP RTT, transport RTT, throughput and the time taken to fetch
+ // |request|.
+ void RecordCorrelationMetric(const URLRequest& request) const;
+
// Determines if the requests to local host can be used in estimating the
// network quality. Set to true only for tests.
bool use_localhost_requests_;
@@ -604,6 +609,12 @@ class NET_EXPORT_PRIVATE NetworkQualityEstimator
// |effective_connection_type_recomputation_interval_| ago).
EffectiveConnectionType effective_connection_type_;
+ // Correlation UMA is recorded with |correlation_logging_probability_|
+ // probability. e.g., if it is 0.0, then the UMA will never be recorded. On
+ // the other hand, if it is 1.0, then it will be recorded for all valid HTTP
+ // requests.
bengr 2016/07/08 16:49:52 Why is it not recorded for all requests? If this i
tbansal1 2016/07/08 17:45:51 Added more comments.
+ const double correlation_logging_probability_;
bengr 2016/07/08 16:49:52 rename: correlation_uma_reporting_probability_;
tbansal1 2016/07/08 17:45:51 Done.
+
base::ThreadChecker thread_checker_;
base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_;
« no previous file with comments | « no previous file | net/nqe/network_quality_estimator.cc » ('j') | net/nqe/network_quality_estimator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698