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

Unified Diff: net/quic/chromium/quic_stream_factory.cc

Issue 2238393002: QUIC - Measure how long the cert verification job has taken when we race (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_stream_factory.cc
diff --git a/net/quic/chromium/quic_stream_factory.cc b/net/quic/chromium/quic_stream_factory.cc
index 5cd80d1b230ff81adbf222660a16e1d7912c1b0b..62b9ebf48eac0f1bbe557f7cec2e07a4f2744c36 100644
--- a/net/quic/chromium/quic_stream_factory.cc
+++ b/net/quic/chromium/quic_stream_factory.cc
@@ -229,6 +229,7 @@ class QuicStreamFactory::CertVerifierJob {
verify_callback_(nullptr),
verify_context_(base::WrapUnique(
new ProofVerifyContextChromium(cert_verify_flags, net_log))),
+ start_time_(base::TimeTicks::Now()),
net_log_(net_log),
weak_factory_(this) {}
@@ -256,6 +257,8 @@ class QuicStreamFactory::CertVerifierJob {
}
void OnComplete() {
+ UMA_HISTOGRAM_TIMES("Net.QuicSession.CertVerifierJob.CompleteTime",
+ base::TimeTicks::Now() - start_time_);
if (!callback_.is_null())
callback_.Run(OK);
}
@@ -268,6 +271,7 @@ class QuicStreamFactory::CertVerifierJob {
std::unique_ptr<ProofVerifyContext> verify_context_;
std::unique_ptr<ProofVerifyDetails> verify_details_;
std::string verify_error_details_;
+ base::TimeTicks start_time_;
const BoundNetLog net_log_;
CompletionCallback callback_;
base::WeakPtrFactory<CertVerifierJob> weak_factory_;
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698