mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 673226 - Null timestamp usage in telemetry code; r=jduell.mcbugs
This commit is contained in:
parent
0b2b971e93
commit
defd1da6aa
@ -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)); \
|
||||
|
Loading…
Reference in New Issue
Block a user