зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 72d4f33ccc36 (bug 1884208
) for causing assertion failures @ parser/html/nsHtml5StreamParser.cpp
This commit is contained in:
Родитель
4df1141842
Коммит
24246bd5c0
|
@ -452,6 +452,22 @@ networking:
|
|||
- rjesup@mozilla.com
|
||||
expires: 130
|
||||
|
||||
http_content_ondatafinished_to_onstop_delay_negative:
|
||||
type: timing_distribution
|
||||
time_unit: millisecond
|
||||
description: >
|
||||
The time between processing OnStopRequest and processing OnDataFinished (if OnStopRequest comes first)
|
||||
bugs:
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1857615
|
||||
data_reviews:
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1857615#c
|
||||
data_sensitivity:
|
||||
- technical
|
||||
notification_emails:
|
||||
- necko@mozilla.com
|
||||
- rjesup@mozilla.com
|
||||
expires: 130
|
||||
|
||||
http_content_html5parser_ondatafinished_to_onstop_delay:
|
||||
type: timing_distribution
|
||||
time_unit: millisecond
|
||||
|
@ -468,6 +484,22 @@ networking:
|
|||
- rjesup@mozilla.com
|
||||
expires: 130
|
||||
|
||||
http_content_html5parser_ondatafinished_to_onstop_delay_negative:
|
||||
type: timing_distribution
|
||||
time_unit: millisecond
|
||||
description: >
|
||||
The time between processing OnStopRequest and processing OnDataFinished (if OnStopRequest comes first)
|
||||
bugs:
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1857926
|
||||
data_reviews:
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1857926
|
||||
data_sensitivity:
|
||||
- technical
|
||||
notification_emails:
|
||||
- necko@mozilla.com
|
||||
- rjesup@mozilla.com
|
||||
expires: 130
|
||||
|
||||
http_content_cssloader_ondatafinished_to_onstop_delay:
|
||||
type: timing_distribution
|
||||
time_unit: millisecond
|
||||
|
|
|
@ -852,10 +852,15 @@ class RecordStopRequestDelta final {
|
|||
}
|
||||
|
||||
TimeDuration delta = (mOnStopRequestTime - mOnDataFinishedTime);
|
||||
MOZ_ASSERT((delta.ToMilliseconds() >= 0),
|
||||
"OnDataFinished after OnStopRequest");
|
||||
glean::networking::http_content_ondatafinished_to_onstop_delay
|
||||
.AccumulateRawDuration(delta);
|
||||
if (delta.ToMilliseconds() < 0) {
|
||||
// Because Telemetry can't handle negatives
|
||||
delta = -delta;
|
||||
glean::networking::http_content_ondatafinished_to_onstop_delay_negative
|
||||
.AccumulateRawDuration(delta);
|
||||
} else {
|
||||
glean::networking::http_content_ondatafinished_to_onstop_delay
|
||||
.AccumulateRawDuration(delta);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -1421,10 +1421,16 @@ nsresult nsHtml5StreamParser::OnStopRequest(
|
|||
}
|
||||
if (!mOnStopRequestTime.IsNull() && !mOnDataFinishedTime.IsNull()) {
|
||||
TimeDuration delta = (mOnStopRequestTime - mOnDataFinishedTime);
|
||||
MOZ_ASSERT((delta.ToMilliseconds() >= 0),
|
||||
"OnDataFinished after OnStopRequest");
|
||||
glean::networking::http_content_html5parser_ondatafinished_to_onstop_delay
|
||||
.AccumulateRawDuration(delta);
|
||||
if (delta.ToMilliseconds() < 0) {
|
||||
// Because Telemetry can't handle negatives
|
||||
delta = -delta;
|
||||
glean::networking::
|
||||
http_content_html5parser_ondatafinished_to_onstop_delay_negative
|
||||
.AccumulateRawDuration(delta);
|
||||
} else {
|
||||
glean::networking::http_content_html5parser_ondatafinished_to_onstop_delay
|
||||
.AccumulateRawDuration(delta);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче