Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Issue 1877713002: Replaced the data logging functionality in the AEC with a generic logging functionality (Closed)

Created:
4 years, 8 months ago by peah-webrtc
Modified:
4 years, 7 months ago
CC:
webrtc-reviews_webrtc.org, peah-webrtc, Andrew MacDonald, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, minyue-webrtc, the sun, aluebs-webrtc, bjornv1
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

This CL introduces a new data logging functionality to use for the APM. It allows simple and rapid additions of exploratory data logpoints to use during bug investigations and module performance analysis. The new data logging functionality is also in this CL used to replace the existing data logging functionality present in the AEC. Additional information: As there was an issue with that the build flag for activating this feature was not present in all compilation units that included the feature additional changes were needed. A summary of the changes are -The build files were modified to ensure that the logging build flag always is set to either 0 or 1 for compilation units that include the feature. -Build-time checks in the appropriate places were added to ensure that the above is fulfilled. -The build object was added dynamically to the AEC state as a pointer to ensure that the size of that state is not dependent on whether the logging build flag is set or not. -The constructor of the AEC class needed to be modified in order to construct the logging object. For this a destructor was also needed. -An unused method without any declaration was removed in order to avoid any issues with the logging flag being set to 0 or 1. This CL will be immediately followed with an upcoming CL that replaces the logging in echo_cancellation.cc with the new functionality which will ensure that the logging flag is only used in one place within WebRTC, which in turn will fully ensure that all compilation units that uses the feature also have the flag properly set. BUG=webrtc:5201, webrtc:5298 Committed: https://crrev.com/b46083ed6308b95f1e83570342dbe3eb0a54729e Cr-Commit-Position: refs/heads/master@{#12607}

Patch Set 1 #

Total comments: 51

Patch Set 2 : Changes in response to reviewer comments. Also fixed an issue with the build files. #

Patch Set 3 : Rebase with latest master #

Patch Set 4 : Updated build files to handle NEON code properly #

Patch Set 5 : Rebase with latest master #

Patch Set 6 : Major changes in order to ensure proper handling of debug dumping in all parts of the code #

Patch Set 7 : Removed unused function declaration #

Patch Set 8 : Added a destructor for the AecCore struct #

Patch Set 9 : Made the destructor out-of-line #

Total comments: 8

Patch Set 10 : Updated the buildfile according to reviewer comments #

Total comments: 4

Patch Set 11 : Changed construction of the filename and corrected the typo in the comment #

Total comments: 10

Patch Set 12 : Changes in response to latest reviewer comments #

Total comments: 4

Patch Set 13 : Introduced the proposed alternative map lookup #

Patch Set 14 : Rebase with latest master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -316 lines) Patch
M webrtc/modules/audio_processing/BUILD.gn View 1 2 3 4 chunks +17 lines, -4 lines 0 comments Download
M webrtc/modules/audio_processing/aec/aec_core.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -4 lines 0 comments Download
M webrtc/modules/audio_processing/aec/aec_core.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +16 lines, -56 lines 0 comments Download
M webrtc/modules/audio_processing/aec/aec_core_internal.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +7 lines, -17 lines 0 comments Download
M webrtc/modules/audio_processing/aec/echo_cancellation.cc View 1 2 3 4 8 chunks +22 lines, -22 lines 0 comments Download
M webrtc/modules/audio_processing/aec/echo_cancellation_internal.h View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing.gypi View 1 2 3 4 5 6 7 8 9 6 chunks +20 lines, -5 lines 0 comments Download
D webrtc/modules/audio_processing/logging/aec_logging.h View 1 chunk +0 lines, -108 lines 0 comments Download
D webrtc/modules/audio_processing/logging/aec_logging_file_handling.h View 1 chunk +0 lines, -41 lines 0 comments Download
D webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc View 1 chunk +0 lines, -57 lines 0 comments Download
A webrtc/modules/audio_processing/logging/apm_data_dumper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +103 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/logging/apm_data_dumper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +65 lines, -0 lines 0 comments Download

Messages

Total messages: 72 (35 generated)
peah-webrtc
4 years, 8 months ago (2016-04-09 20:58:10 UTC) #4
kwiberg-webrtc
https://codereview.webrtc.org/1877713002/diff/20001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc File webrtc/modules/audio_processing/logging/apm_data_dumper.cc (right): https://codereview.webrtc.org/1877713002/diff/20001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc#newcode28 webrtc/modules/audio_processing/logging/apm_data_dumper.cc:28: } You can probably unify these two. https://codereview.webrtc.org/1877713002/diff/20001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc#newcode79 webrtc/modules/audio_processing/logging/apm_data_dumper.cc:79: ...
4 years, 8 months ago (2016-04-11 10:43:37 UTC) #5
hlundin-webrtc
https://codereview.webrtc.org/1877713002/diff/20001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc File webrtc/modules/audio_processing/logging/apm_data_dumper.cc (right): https://codereview.webrtc.org/1877713002/diff/20001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc#newcode16 webrtc/modules/audio_processing/logging/apm_data_dumper.cc:16: std::string FormRawFileName(std::string name, const std::string& https://codereview.webrtc.org/1877713002/diff/20001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc#newcode19 webrtc/modules/audio_processing/logging/apm_data_dumper.cc:19: return name ...
4 years, 8 months ago (2016-04-11 11:58:29 UTC) #6
kwiberg-webrtc
https://codereview.webrtc.org/1877713002/diff/20001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc File webrtc/modules/audio_processing/logging/apm_data_dumper.cc (right): https://codereview.webrtc.org/1877713002/diff/20001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc#newcode16 webrtc/modules/audio_processing/logging/apm_data_dumper.cc:16: std::string FormRawFileName(std::string name, On 2016/04/11 11:58:29, hlundin-webrtc wrote: > ...
4 years, 8 months ago (2016-04-11 12:59:11 UTC) #7
peah-webrtc
Hi, Thanks for the great comments. I have now addressed them in a new patch-set ...
4 years, 8 months ago (2016-04-12 21:46:39 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877713002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877713002/60001
4 years, 8 months ago (2016-04-12 21:53:02 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios32_sim_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios32_sim_dbg/builds/6618) ios64_sim_dbg on ...
4 years, 8 months ago (2016-04-12 21:54:16 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877713002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877713002/80001
4 years, 8 months ago (2016-04-13 04:39:41 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_rel/builds/12792) mac_gn_dbg on ...
4 years, 8 months ago (2016-04-13 04:40:54 UTC) #17
peah-webrtc
Please hold on for some more hours before reviewing this. There were some build file ...
4 years, 8 months ago (2016-04-13 04:44:20 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877713002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877713002/100001
4 years, 8 months ago (2016-04-15 05:27:34 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_arm64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_arm64_rel/builds/8920) mac_asan on ...
4 years, 8 months ago (2016-04-15 05:28:26 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877713002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877713002/120001
4 years, 8 months ago (2016-04-15 05:33:32 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_arm64_rel/builds/7013) android_dbg on ...
4 years, 8 months ago (2016-04-15 05:36:03 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877713002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877713002/140001
4 years, 8 months ago (2016-04-15 06:04:24 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_rel/builds/12852)
4 years, 8 months ago (2016-04-15 06:06:35 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877713002/330001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877713002/330001
4 years, 8 months ago (2016-04-22 19:46:32 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_gn_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_gn_dbg/builds/2571) mac_gn_rel on ...
4 years, 8 months ago (2016-04-22 19:49:44 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877713002/370001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877713002/370001
4 years, 8 months ago (2016-04-22 20:46:21 UTC) #40
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 8 months ago (2016-04-22 22:46:58 UTC) #42
peah-webrtc
This CL is again ready for review.
4 years, 8 months ago (2016-04-25 04:47:51 UTC) #49
peah-webrtc
+ @kjellander Could you please have a look at the build file changes that are ...
4 years, 8 months ago (2016-04-25 04:48:55 UTC) #51
kjellander_webrtc
generally looks good but webrtc/modules/audio_processing/audio_processing.gypi needs a little work. https://codereview.webrtc.org/1877713002/diff/370001/webrtc/modules/audio_processing/audio_processing.gypi File webrtc/modules/audio_processing/audio_processing.gypi (right): https://codereview.webrtc.org/1877713002/diff/370001/webrtc/modules/audio_processing/audio_processing.gypi#newcode251 webrtc/modules/audio_processing/audio_processing.gypi:251: ...
4 years, 8 months ago (2016-04-25 05:46:40 UTC) #52
peah-webrtc
https://codereview.webrtc.org/1877713002/diff/370001/webrtc/modules/audio_processing/audio_processing.gypi File webrtc/modules/audio_processing/audio_processing.gypi (right): https://codereview.webrtc.org/1877713002/diff/370001/webrtc/modules/audio_processing/audio_processing.gypi#newcode251 webrtc/modules/audio_processing/audio_processing.gypi:251: 'aec_debug_dump%': 0, On 2016/04/25 05:46:40, kjellander (webrtc) wrote: > ...
4 years, 8 months ago (2016-04-25 10:58:27 UTC) #53
hlundin-webrtc
LG, just a few minor comments. https://codereview.webrtc.org/1877713002/diff/20001/webrtc/modules/audio_processing/logging/apm_data_dumper.h File webrtc/modules/audio_processing/logging/apm_data_dumper.h (right): https://codereview.webrtc.org/1877713002/diff/20001/webrtc/modules/audio_processing/logging/apm_data_dumper.h#newcode55 webrtc/modules/audio_processing/logging/apm_data_dumper.h:55: FILE* GetRawFile(const std::string& ...
4 years, 8 months ago (2016-04-25 11:29:59 UTC) #54
peah-webrtc
https://codereview.webrtc.org/1877713002/diff/390001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc File webrtc/modules/audio_processing/logging/apm_data_dumper.cc (right): https://codereview.webrtc.org/1877713002/diff/390001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc#newcode30 webrtc/modules/audio_processing/logging/apm_data_dumper.cc:30: char instance_index_string[10]; On 2016/04/25 11:29:59, hlundin-webrtc wrote: > I ...
4 years, 8 months ago (2016-04-25 11:46:40 UTC) #55
hlundin-webrtc
lgtm
4 years, 8 months ago (2016-04-25 11:53:17 UTC) #56
kjellander_webrtc
*.gypi,*.gn: lgtm
4 years, 8 months ago (2016-04-25 12:34:38 UTC) #57
kwiberg-webrtc
https://codereview.webrtc.org/1877713002/diff/410001/webrtc/modules/audio_processing/aec/aec_core.cc File webrtc/modules/audio_processing/aec/aec_core.cc (right): https://codereview.webrtc.org/1877713002/diff/410001/webrtc/modules/audio_processing/aec/aec_core.cc#newcode1306 webrtc/modules/audio_processing/aec/aec_core.cc:1306: aec->data_dumper->DumpWav("aec_far", PART_LEN, &farend_ptr[PART_LEN], At each of these call sites, ...
4 years, 7 months ago (2016-05-03 00:53:01 UTC) #58
peah-webrtc
https://codereview.webrtc.org/1877713002/diff/410001/webrtc/modules/audio_processing/aec/aec_core.cc File webrtc/modules/audio_processing/aec/aec_core.cc (right): https://codereview.webrtc.org/1877713002/diff/410001/webrtc/modules/audio_processing/aec/aec_core.cc#newcode1306 webrtc/modules/audio_processing/aec/aec_core.cc:1306: aec->data_dumper->DumpWav("aec_far", PART_LEN, &farend_ptr[PART_LEN], On 2016/05/03 00:53:00, kwiberg-webrtc wrote: > ...
4 years, 7 months ago (2016-05-03 06:29:22 UTC) #59
kwiberg-webrtc
lgtm, but see addtional comments. https://codereview.webrtc.org/1877713002/diff/430001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc File webrtc/modules/audio_processing/logging/apm_data_dumper.cc (right): https://codereview.webrtc.org/1877713002/diff/430001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc#newcode48 webrtc/modules/audio_processing/logging/apm_data_dumper.cc:48: return raw_files_[filename].get(); You do ...
4 years, 7 months ago (2016-05-03 09:02:50 UTC) #60
peah-webrtc
https://codereview.webrtc.org/1877713002/diff/430001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc File webrtc/modules/audio_processing/logging/apm_data_dumper.cc (right): https://codereview.webrtc.org/1877713002/diff/430001/webrtc/modules/audio_processing/logging/apm_data_dumper.cc#newcode48 webrtc/modules/audio_processing/logging/apm_data_dumper.cc:48: return raw_files_[filename].get(); On 2016/05/03 09:02:50, kwiberg-webrtc wrote: > You ...
4 years, 7 months ago (2016-05-03 11:24:40 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877713002/470001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877713002/470001
4 years, 7 months ago (2016-05-03 11:25:08 UTC) #64
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 7 months ago (2016-05-03 13:25:52 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877713002/470001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877713002/470001
4 years, 7 months ago (2016-05-03 13:37:50 UTC) #68
commit-bot: I haz the power
Committed patchset #14 (id:470001)
4 years, 7 months ago (2016-05-03 14:01:25 UTC) #70
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 14:01:36 UTC) #72
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/b46083ed6308b95f1e83570342dbe3eb0a54729e
Cr-Commit-Position: refs/heads/master@{#12607}

Powered by Google App Engine
This is Rietveld 408576698