From 00ab7cf4fd83b9031325b8e67de606becf4ad920 Mon Sep 17 00:00:00 2001 From: "kjellander@webrtc.org" Date: Mon, 11 Feb 2013 12:33:03 +0000 Subject: [PATCH] Fix perf output for audioproc and iSAC fixed-point tests The measurement and trace entries had been mixed up in the calls to webrtc::test::PrintResult, resulting in the plotted graphs were named after the metric. The parameter names are quite confusing which probably led to this. BUG=none TEST=none Review URL: https://webrtc-codereview.appspot.com/1093007 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3496 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc | 2 +- webrtc/modules/audio_processing/test/process_test.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc b/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc index 71a2e47e57..ee70eb0594 100644 --- a/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc +++ b/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc @@ -811,7 +811,7 @@ int main(int argc, char* argv[]) printf("\n\n_______________________________________________\n"); // Record the results with Perf test tools. - webrtc::test::PrintResult("time_per_10ms_frame", "", "isac", + webrtc::test::PrintResult("isac", "", "time_per_10ms_frame", (runtime * 10000) / length_file, "us", false); fclose(inp); diff --git a/webrtc/modules/audio_processing/test/process_test.cc b/webrtc/modules/audio_processing/test/process_test.cc index 36a9932235..98d15928a1 100644 --- a/webrtc/modules/audio_processing/test/process_test.cc +++ b/webrtc/modules/audio_processing/test/process_test.cc @@ -1026,7 +1026,7 @@ void void_main(int argc, char* argv[]) { (max_time_us + max_time_reverse_us) / 1000.0, (min_time_us + min_time_reverse_us) / 1000.0); // Record the results with Perf test tools. - webrtc::test::PrintResult("time_per_10ms_frame", "", "audioproc", + webrtc::test::PrintResult("audioproc", "", "time_per_10ms_frame", (exec_time * 1000) / primary_count, "us", false); } else { printf("Warning: no capture frames\n");