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

Issue 1413483003: Added option to specify a maximum file size when recording an AEC dump. (Closed)

Created:
5 years, 2 months ago by ivoc
Modified:
5 years ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, yujie_mao (webrtc), kwiberg-webrtc, Andrew MacDonald, henrika_webrtc, hlundin-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-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

Added option to specify a maximum file size when recording an AEC dump. For applications with a strict filesize limit for debug files, I added an option to specify a maximum filesize for AEC dumps. An existing unit test is extended to check that the feature works as advertised. BUG=webrtc:4741 TBR=glaznev@webrtc.org Committed: https://crrev.com/ae2c5ad12afc8cc29fe9c59dea432b697b871a87 Cr-Commit-Position: refs/heads/master@{#11081}

Patch Set 1 : Initial version #

Total comments: 30

Patch Set 2 : Processed first batch of reviews. #

Total comments: 10

Patch Set 3 : Addressed more review comments. #

Total comments: 10

Patch Set 4 : Addressed comments by Andrew and the sun. #

Patch Set 5 : Rebase and made small update to JNI layer. #

Patch Set 6 : Added function to avoid breaking Chromium. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -60 lines) Patch
M talk/app/webrtc/java/jni/peerconnection_jni.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M talk/app/webrtc/peerconnectionfactory.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M talk/app/webrtc/peerconnectionfactory.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M talk/app/webrtc/peerconnectionfactoryproxy.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M talk/app/webrtc/peerconnectioninterface.h View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M talk/media/base/fakemediaengine.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M talk/media/base/mediaengine.h View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M talk/media/webrtc/fakewebrtcvoiceengine.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine.cc View 1 2 3 4 4 chunks +7 lines, -5 lines 0 comments Download
M talk/session/media/channelmanager.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M talk/session/media/channelmanager.cc View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.h View 1 2 3 4 3 chunks +7 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.cc View 1 2 3 4 13 chunks +28 lines, -4 lines 0 comments Download
M webrtc/modules/audio_processing/include/audio_processing.h View 1 2 3 4 5 1 chunk +12 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/include/mock_audio_processing.h View 1 1 chunk +5 lines, -4 lines 0 comments Download
M webrtc/modules/audio_processing/test/audio_processing_unittest.cc View 1 2 3 4 9 chunks +34 lines, -11 lines 0 comments Download
M webrtc/modules/audio_processing/test/debug_dump_test.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_processing/test/process_test.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/voice_engine/voe_audio_processing_impl.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 47 (18 generated)
ivoc
Hi guys, Please have a look at this CL to add a feature to cap ...
5 years, 2 months ago (2015-10-23 13:20:25 UTC) #6
Andrew MacDonald
Drive-by. +the sun, question about refactoring I didn't look at the implementation: does this stop ...
5 years, 2 months ago (2015-10-23 17:15:18 UTC) #8
kwiberg-webrtc
https://codereview.webrtc.org/1413483003/diff/1/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/1413483003/diff/1/talk/media/webrtc/webrtcvoiceengine.cc#newcode1300 talk/media/webrtc/webrtcvoiceengine.cc:1300: } This duplicates a lot of the preceding function. ...
5 years, 2 months ago (2015-10-25 02:29:12 UTC) #10
the sun
https://codereview.webrtc.org/1413483003/diff/1/talk/app/webrtc/peerconnectionfactory.h File talk/app/webrtc/peerconnectionfactory.h (right): https://codereview.webrtc.org/1413483003/diff/1/talk/app/webrtc/peerconnectionfactory.h#newcode83 talk/app/webrtc/peerconnectionfactory.h:83: bool StartAecDump(rtc::PlatformFile file, int max_size_bytes) override; Is the plan ...
5 years, 1 month ago (2015-10-26 10:37:20 UTC) #11
hlundin-webrtc
https://codereview.webrtc.org/1413483003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/1413483003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode941 webrtc/modules/audio_processing/audio_processing_impl.cc:941: nr_bytes_left_for_log = -1; Is it important to reset to ...
5 years, 1 month ago (2015-10-30 08:02:21 UTC) #12
kwiberg-webrtc
https://codereview.webrtc.org/1413483003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.h File webrtc/modules/audio_processing/audio_processing_impl.h (right): https://codereview.webrtc.org/1413483003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.h#newcode183 webrtc/modules/audio_processing/audio_processing_impl.h:183: int nr_bytes_left_for_log; On 2015/10/30 08:02:21, hlundin-webrtc wrote: > On ...
5 years, 1 month ago (2015-10-30 09:53:21 UTC) #13
hlundin-webrtc
https://codereview.webrtc.org/1413483003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.h File webrtc/modules/audio_processing/audio_processing_impl.h (right): https://codereview.webrtc.org/1413483003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.h#newcode183 webrtc/modules/audio_processing/audio_processing_impl.h:183: int nr_bytes_left_for_log; On 2015/10/30 09:53:21, kwiberg-webrtc wrote: > On ...
5 years, 1 month ago (2015-10-30 09:59:15 UTC) #14
ivoc
Thanks for the great comments! Sorry for the delay, something else popped up. Where possible ...
5 years, 1 month ago (2015-11-05 13:14:46 UTC) #16
kwiberg-webrtc
lgtm https://codereview.webrtc.org/1413483003/diff/40001/talk/media/base/mediaengine.h File talk/media/base/mediaengine.h (right): https://codereview.webrtc.org/1413483003/diff/40001/talk/media/base/mediaengine.h#newcode124 talk/media/base/mediaengine.h:124: // stopped and the file is closed. If ...
5 years, 1 month ago (2015-11-08 19:09:07 UTC) #18
the sun
https://codereview.webrtc.org/1413483003/diff/40001/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/1413483003/diff/40001/talk/media/webrtc/webrtcvoiceengine.cc#newcode1263 talk/media/webrtc/webrtcvoiceengine.cc:1263: int64_t max_size_bytes) { I don't see where max_size_bytes is ...
5 years, 1 month ago (2015-11-11 15:54:42 UTC) #19
hlundin-webrtc
webrtc/*: lgtm with one nit. https://codereview.webrtc.org/1413483003/diff/40001/webrtc/modules/audio_processing/audio_processing_impl.h File webrtc/modules/audio_processing/audio_processing_impl.h (right): https://codereview.webrtc.org/1413483003/diff/40001/webrtc/modules/audio_processing/audio_processing_impl.h#newcode181 webrtc/modules/audio_processing/audio_processing_impl.h:181: int64_t nr_bytes_left_for_log; Trailing underscore ...
5 years, 1 month ago (2015-11-11 15:55:05 UTC) #20
ivoc
Thanks for the reviews, see my replies below. https://codereview.webrtc.org/1413483003/diff/40001/talk/media/base/mediaengine.h File talk/media/base/mediaengine.h (right): https://codereview.webrtc.org/1413483003/diff/40001/talk/media/base/mediaengine.h#newcode124 talk/media/base/mediaengine.h:124: // ...
5 years, 1 month ago (2015-11-11 16:44:32 UTC) #21
ivoc
Hi guys, we need this CL to go in before we can add AEC dumps ...
5 years, 1 month ago (2015-11-24 09:33:53 UTC) #22
the sun
lgtm https://codereview.webrtc.org/1413483003/diff/60001/webrtc/modules/audio_processing/audio_processing_impl.h File webrtc/modules/audio_processing/audio_processing_impl.h (right): https://codereview.webrtc.org/1413483003/diff/60001/webrtc/modules/audio_processing/audio_processing_impl.h#newcode181 webrtc/modules/audio_processing/audio_processing_impl.h:181: int64_t nr_bytes_left_for_log_; nit: nr_ -> num_
5 years, 1 month ago (2015-11-24 10:10:10 UTC) #23
Andrew MacDonald
https://codereview.webrtc.org/1413483003/diff/60001/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (left): https://codereview.webrtc.org/1413483003/diff/60001/webrtc/modules/audio_processing/audio_processing_impl.cc#oldcode914 webrtc/modules/audio_processing/audio_processing_impl.cc:914: if (debug_file_->Open()) { Why did you remove this block? ...
5 years ago (2015-11-24 17:28:59 UTC) #24
Henrik Grunell WebRTC
High level lgtm.
5 years ago (2015-11-26 12:42:55 UTC) #25
ivoc
https://codereview.webrtc.org/1413483003/diff/60001/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (left): https://codereview.webrtc.org/1413483003/diff/60001/webrtc/modules/audio_processing/audio_processing_impl.cc#oldcode914 webrtc/modules/audio_processing/audio_processing_impl.cc:914: if (debug_file_->Open()) { On 2015/11/24 17:28:59, Andrew MacDonald wrote: ...
5 years ago (2015-12-01 15:17:17 UTC) #27
Andrew MacDonald
lgtm https://codereview.webrtc.org/1413483003/diff/60001/webrtc/modules/audio_processing/include/audio_processing.h File webrtc/modules/audio_processing/include/audio_processing.h (right): https://codereview.webrtc.org/1413483003/diff/60001/webrtc/modules/audio_processing/include/audio_processing.h#newcode409 webrtc/modules/audio_processing/include/audio_processing.h:409: virtual int StartDebugRecordingForPlatformFile(rtc::PlatformFile handle) { On 2015/12/01 15:17:16, ...
5 years ago (2015-12-02 00:11:13 UTC) #28
ivoc
@perkj: Could you have a look at the changes in talk/ please? Thanks!
5 years ago (2015-12-07 08:49:40 UTC) #31
perkj_webrtc
I think this will break chrome unless you also keep the previous version in peerconnectioninterface ...
5 years ago (2015-12-09 20:07:49 UTC) #32
Henrik Grunell WebRTC
On 2015/12/09 20:07:49, perkj1 wrote: > I think this will break chrome unless you also ...
5 years ago (2015-12-10 09:28:38 UTC) #33
ivoc
On 2015/12/10 09:28:38, Henrik Grunell (webrtc) wrote: > On 2015/12/09 20:07:49, perkj1 wrote: > > ...
5 years ago (2015-12-10 10:06:10 UTC) #34
Henrik Grunell WebRTC
On 2015/12/10 10:06:10, ivoc wrote: > On 2015/12/10 09:28:38, Henrik Grunell (webrtc) wrote: > > ...
5 years ago (2015-12-10 17:41:30 UTC) #35
ivoc
I had to make some more changes due to a rebase. glaznev@: Could you have ...
5 years ago (2015-12-15 09:33:18 UTC) #37
ivoc
I'm going to TBR this because it's my last day before my (rather long) vacation.
5 years ago (2015-12-18 09:27:54 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413483003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413483003/120001
5 years ago (2015-12-18 09:28:20 UTC) #42
commit-bot: I haz the power
Committed patchset #5 (id:120001)
5 years ago (2015-12-18 11:53:42 UTC) #44
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/ae2c5ad12afc8cc29fe9c59dea432b697b871a87 Cr-Commit-Position: refs/heads/master@{#11081}
5 years ago (2015-12-18 11:53:49 UTC) #46
ivoc
5 years ago (2015-12-18 16:04:45 UTC) #47
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:120001) has been created in
https://codereview.webrtc.org/1533913004/ by ivoc@webrtc.org.

The reason for reverting is: Breaks Chrome-FYI bots because of a change in the
StartDebugRecording function in audio_processing.h, that is called from Chrome.
.

Powered by Google App Engine
This is Rietveld 408576698