зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1766646 - Vendor libwebrtc from 7634ea7240
Upstream commit: https://webrtc.googlesource.com/src/+/7634ea7240f6171b3d3013a49eaabf791951722a Add method to extract triage alerts from RTC event log analyzer. Bug: webrtc:11566 Change-Id: I8315895be4fe93513247c49452c50ec23e9d1e11 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/186560 Reviewed-by: Andrey Logvin <landrey@webrtc.org> Commit-Queue: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32292}
This commit is contained in:
Родитель
fa6e2bc0da
Коммит
e7d959b2af
|
@ -414,3 +414,6 @@ eb79dd9ffd
|
|||
# MOZ_LIBWEBRTC_SRC=/home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src MOZ_LIBWEBRTC_COMMIT=mjfdev bash dom/media/webrtc/third_party_build/fast-forward-libwebrtc.sh
|
||||
# base of lastest vendoring
|
||||
09ceed2165
|
||||
# MOZ_LIBWEBRTC_SRC=/home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src MOZ_LIBWEBRTC_COMMIT=mjfdev bash dom/media/webrtc/third_party_build/fast-forward-libwebrtc.sh
|
||||
# base of lastest vendoring
|
||||
7634ea7240
|
||||
|
|
|
@ -276,3 +276,5 @@ libwebrtc updated from /home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwe
|
|||
libwebrtc updated from /home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src commit mjfdev on 2022-03-31T17:57:26.265682.
|
||||
# python3 vendor-libwebrtc.py --from-local /home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src --commit mjfdev libwebrtc
|
||||
libwebrtc updated from /home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src commit mjfdev on 2022-03-31T17:58:02.802020.
|
||||
# python3 vendor-libwebrtc.py --from-local /home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src --commit mjfdev libwebrtc
|
||||
libwebrtc updated from /home/mfroman/git-checkouts/trial-webrtc-builds/moz-libwebrtc-checkout/src commit mjfdev on 2022-04-04T19:32:27.678529.
|
||||
|
|
|
@ -26,15 +26,6 @@
|
|||
|
||||
namespace webrtc {
|
||||
|
||||
void TriageHelper::Print(FILE* file) {
|
||||
fprintf(file, "========== TRIAGE NOTIFICATIONS ==========\n");
|
||||
for (const auto& alert : triage_alerts_) {
|
||||
fprintf(file, "%d %s. First occurrence at %3.3lf\n", alert.second.count,
|
||||
alert.second.explanation.c_str(), alert.second.first_occurrence);
|
||||
}
|
||||
fprintf(file, "========== END TRIAGE NOTIFICATIONS ==========\n");
|
||||
}
|
||||
|
||||
void TriageHelper::AnalyzeStreamGaps(const ParsedRtcEventLog& parsed_log,
|
||||
PacketDirection direction) {
|
||||
// With 100 packets/s (~800kbps), false positives would require 10 s without
|
||||
|
@ -224,4 +215,21 @@ void TriageHelper::AnalyzeLog(const ParsedRtcEventLog& parsed_log) {
|
|||
}
|
||||
}
|
||||
|
||||
void TriageHelper::Print(FILE* file) {
|
||||
fprintf(file, "========== TRIAGE NOTIFICATIONS ==========\n");
|
||||
for (const auto& alert : triage_alerts_) {
|
||||
fprintf(file, "%d %s. First occurrence at %3.3lf\n", alert.second.count,
|
||||
alert.second.explanation.c_str(), alert.second.first_occurrence);
|
||||
}
|
||||
fprintf(file, "========== END TRIAGE NOTIFICATIONS ==========\n");
|
||||
}
|
||||
|
||||
void TriageHelper::ProcessAlerts(
|
||||
std::function<void(int, float, std::string)> f) {
|
||||
for (const auto& alert : triage_alerts_) {
|
||||
f(alert.second.count, alert.second.first_occurrence,
|
||||
alert.second.explanation);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
|
|
|
@ -57,6 +57,8 @@ class TriageHelper {
|
|||
PacketDirection direction);
|
||||
void Print(FILE* file);
|
||||
|
||||
void ProcessAlerts(std::function<void(int, float, std::string)> f);
|
||||
|
||||
private:
|
||||
AnalyzerConfig config_;
|
||||
std::map<TriageAlertType, TriageAlert> triage_alerts_;
|
||||
|
|
Загрузка…
Ссылка в новой задаче