Add NetEq delay plotting to event_log_visualizer
This CL adds the capability to analyze and plot how NetEq behaves in response to a network trace. BUG=webrtc:7467 Review-Url: https://codereview.webrtc.org/2876423002 Cr-Commit-Position: refs/heads/master@{#18590}
This commit is contained in:
committed by
Commit Bot
parent
3c81a1afd8
commit
3c938fc5ea
@ -13,6 +13,7 @@
|
||||
#include "webrtc/base/flags.h"
|
||||
#include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h"
|
||||
#include "webrtc/test/field_trial.h"
|
||||
#include "webrtc/test/testsupport/fileutils.h"
|
||||
#include "webrtc/tools/event_log_visualizer/analyzer.h"
|
||||
#include "webrtc/tools/event_log_visualizer/plot_base.h"
|
||||
#include "webrtc/tools/event_log_visualizer/plot_python.h"
|
||||
@ -77,6 +78,9 @@ DEFINE_bool(audio_encoder_dtx, false, "Plot the audio encoder DTX.");
|
||||
DEFINE_bool(audio_encoder_num_channels,
|
||||
false,
|
||||
"Plot the audio encoder number of channels.");
|
||||
DEFINE_bool(plot_audio_jitter_buffer,
|
||||
false,
|
||||
"Plot the audio jitter buffer delay profile.");
|
||||
DEFINE_string(
|
||||
force_fieldtrials,
|
||||
"",
|
||||
@ -105,6 +109,7 @@ int main(int argc, char* argv[]) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
webrtc::test::SetExecutablePath(argv[0]);
|
||||
webrtc::test::InitFieldTrialsFromString(FLAG_force_fieldtrials);
|
||||
|
||||
std::string filename = argv[1];
|
||||
@ -231,6 +236,14 @@ int main(int argc, char* argv[]) {
|
||||
analyzer.CreateAudioEncoderNumChannelsGraph(collection->AppendNewPlot());
|
||||
}
|
||||
|
||||
if (FLAG_plot_all || FLAG_plot_audio_jitter_buffer) {
|
||||
analyzer.CreateAudioJitterBufferGraph(
|
||||
webrtc::test::ResourcePath(
|
||||
"audio_processing/conversational_speech/EN_script2_F_sp2_B1",
|
||||
"wav"),
|
||||
48000, collection->AppendNewPlot());
|
||||
}
|
||||
|
||||
collection->Draw();
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user