Index: webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.cc |
diff --git a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.cc b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.cc |
index 3a84e81a0b973c24425f84264729be4050dfbbd2..43818b08ca504cc090b11768116b79c3faed9666 100644 |
--- a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.cc |
+++ b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.cc |
@@ -91,15 +91,28 @@ void Logging::Log(const char format[], ...) { |
} |
void Logging::Plot(int figure, double value) { |
- Plot(figure, value, "-"); |
+ Plot(figure, value, 0, "-"); |
+} |
+ |
+void Logging::Plot(int figure, double value, uint32_t ssrc) { |
+ Plot(figure, value, ssrc, "-"); |
} |
void Logging::Plot(int figure, double value, const std::string& alg_name) { |
+ Plot(figure, value, 0, alg_name); |
+} |
+ |
+void Logging::Plot(int figure, |
+ double value, |
+ uint32_t ssrc, |
+ const std::string& alg_name) { |
CriticalSectionScoped cs(crit_sect_.get()); |
ThreadMap::iterator it = thread_map_.find(rtc::CurrentThreadId()); |
assert(it != thread_map_.end()); |
const State& state = it->second.stack.top(); |
- std::string label = state.tag + '@' + alg_name; |
+ std::stringstream ss; |
+ ss << ssrc; |
+ std::string label = state.tag + ':' + ss.str() + '@' + alg_name; |
std::string prefix("Available"); |
if (alg_name.compare(0, prefix.length(), prefix) == 0) { |
std::string receiver("Receiver"); |