зеркало из https://github.com/mozilla/pjs.git
Bug 673226 - Null timestamp usage in telemetry code; r=jduell.mcbugs
This commit is contained in:
Родитель
e2bbc234a5
Коммит
b53745b092
|
@ -887,11 +887,6 @@ nsLoadGroup::TelemetryReportChannel(nsITimedChannel *aTimedChannel,
|
|||
if (NS_FAILED(rv) || !timingEnabled)
|
||||
return;
|
||||
|
||||
TimeStamp channelCreation;
|
||||
rv = aTimedChannel->GetChannelCreation(&channelCreation);
|
||||
if (NS_FAILED(rv))
|
||||
return;
|
||||
|
||||
TimeStamp asyncOpen;
|
||||
rv = aTimedChannel->GetAsyncOpen(&asyncOpen);
|
||||
// We do not check !asyncOpen.IsNull() bellow, prevent ASSERTIONs this way
|
||||
|
@ -972,7 +967,7 @@ nsLoadGroup::TelemetryReportChannel(nsITimedChannel *aTimedChannel,
|
|||
Telemetry::HTTP_##prefix##_FIRST_SENT_TO_LAST_RECEIVED, \
|
||||
HISTOGRAM_TIME_DELTA(requestStart, responseEnd)); \
|
||||
\
|
||||
if (cacheReadStart.IsNull()) { \
|
||||
if (cacheReadStart.IsNull() && !responseStart.IsNull()) { \
|
||||
Telemetry::Accumulate( \
|
||||
Telemetry::HTTP_##prefix##_OPEN_TO_FIRST_RECEIVED, \
|
||||
HISTOGRAM_TIME_DELTA(asyncOpen, responseStart)); \
|
||||
|
|
Загрузка…
Ссылка в новой задаче