зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1321878 P1 Don't exclude child process and IPC transit time from Performance API network timings. r=mayhemer
MozReview-Commit-ID: 4JVFq40YvvF
This commit is contained in:
Родитель
5131dfea4e
Коммит
7d05d6fdd5
|
@ -904,7 +904,14 @@ HttpChannelChild::OnStopRequest(const nsresult& channelStatus,
|
|||
mTransactionTimings.requestStart = timing.requestStart;
|
||||
mTransactionTimings.responseStart = timing.responseStart;
|
||||
mTransactionTimings.responseEnd = timing.responseEnd;
|
||||
mAsyncOpenTime = timing.fetchStart;
|
||||
|
||||
// Do not overwrite or adjust the original mAsyncOpenTime. We must use the
|
||||
// original child process time in order to account for child side work and IPC
|
||||
// transit overhead. This depends on TimeStamp being equivalent across
|
||||
// processes. We work hard to ensure this on modern hardware, but there could
|
||||
// be some variance on older devices.
|
||||
MOZ_DIAGNOSTIC_ASSERT(mAsyncOpenTime <= timing.fetchStart);
|
||||
|
||||
mRedirectStartTimeStamp = timing.redirectStart;
|
||||
mRedirectEndTimeStamp = timing.redirectEnd;
|
||||
mTransferSize = timing.transferSize;
|
||||
|
|
Загрузка…
Ссылка в новой задаче