Index: net/http/http_stream_factory_impl_job.cc |
diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc |
index 791a390dac5d8e5615822994b35f3e9cb3cd0cf6..38ab9401567c599c5ddd5cf79feb1ac4a9710fdb 100644 |
--- a/net/http/http_stream_factory_impl_job.cc |
+++ b/net/http/http_stream_factory_impl_job.cc |
@@ -343,6 +343,9 @@ void HttpStreamFactoryImpl::Job::OnStreamReadyCallback() { |
DCHECK(!IsPreconnecting()); |
DCHECK(!stream_factory_->for_websockets_); |
+ UMA_HISTOGRAM_TIMES("Net.HttpStreamFactoryJob.StreamReadyCallbackTime", |
+ base::TimeTicks::Now() - job_stream_ready_start_time_); |
+ |
MaybeCopyConnectionAttemptsFromSocketOrHandle(); |
if (IsOrphaned()) { |
@@ -638,6 +641,7 @@ int HttpStreamFactoryImpl::Job::RunLoop(int result) { |
#endif |
} else { |
DCHECK(stream_.get()); |
+ job_stream_ready_start_time_ = base::TimeTicks::Now(); |
base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, |
base::Bind(&Job::OnStreamReadyCallback, ptr_factory_.GetWeakPtr())); |