Make PrintResultList receive a vector of doubles instead of a string.
Also, add more tests to perf_test_unittest. Bug: webrtc:8566 Change-Id: I8864db7172fa207803d310c4a5fee4bf820a56bd Reviewed-on: https://webrtc-review.googlesource.com/25823 Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org> Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org> Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Edward Lemur <ehmaldonado@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20906}
This commit is contained in:
@ -269,12 +269,9 @@ class TimedThreadApiProcessor {
|
||||
"us", false);
|
||||
|
||||
if (kPrintAllDurations) {
|
||||
std::string value_string = "";
|
||||
for (int64_t duration : api_call_durations_) {
|
||||
value_string += std::to_string(duration) + ",";
|
||||
}
|
||||
webrtc::test::PrintResultList("apm_call_durations", sample_rate_name,
|
||||
processor_name, value_string, "us", false);
|
||||
processor_name, api_call_durations_, "us",
|
||||
false);
|
||||
}
|
||||
}
|
||||
|
||||
@ -432,7 +429,7 @@ class TimedThreadApiProcessor {
|
||||
AudioFrameData frame_data_;
|
||||
webrtc::Clock* clock_;
|
||||
const size_t num_durations_to_store_;
|
||||
std::vector<int64_t> api_call_durations_;
|
||||
std::vector<double> api_call_durations_;
|
||||
const float input_level_;
|
||||
bool first_process_call_ = true;
|
||||
const ProcessorType processor_type_;
|
||||
|
||||
Reference in New Issue
Block a user