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

Issue 2019423006: Adding more detail to MessageQueue::Dispatch logging. (Closed)

Created:
4 years, 6 months ago by Taylor Brandstetter
Modified:
4 years, 6 months ago
Reviewers:
tommi, pthatcher1
CC:
webrtc-reviews_webrtc.org, henrika_webrtc, tterriberry_mozilla.com, audio-team_agora.io, sdk-team_agora.io, peah-webrtc, the sun
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Adding more detail to MessageQueue::Dispatch logging. Every message will now be traced with the location from which it was posted, including function name, file and line number. This CL also writes a normal LOG message when the dispatch took more than a certain amount of time (currently 50ms). This logging should help us identify messages that are taking longer than expected to be dispatched. R=pthatcher@webrtc.org, tommi@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/5d97a9a05b928ac50e14a0e4d8aaa42298cad056

Patch Set 1 #

Total comments: 10

Patch Set 2 : Responded to tommi@'s comments. Fixed other minor issues. #

Patch Set 3 : Using sprintfn for Location::ToString; fixing Thread::Invoke #

Patch Set 4 : Combining file and line into one arg, so that TRACE_EVENT3 isn't needed. See discussion on https://… #

Patch Set 5 : #

Patch Set 6 : Move include to .cc file. #

Patch Set 7 : Merge with master. #

Patch Set 8 : Fixing some errors due to merge, and adding location.cc to BUILD.gn. #

Patch Set 9 : Fixing one more place where RTC_FROM_HERE wasn't used. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+766 lines, -487 lines) Patch
M talk/app/webrtc/objc/avfoundationvideocapturer.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/datachannel.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/dtmfsender.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/api/java/jni/androidmediadecoder_jni.cc View 1 7 chunks +11 lines, -8 lines 0 comments Download
M webrtc/api/java/jni/androidmediaencoder_jni.cc View 1 2 3 4 5 6 7 5 chunks +15 lines, -18 lines 0 comments Download
M webrtc/api/java/jni/androidnetworkmonitor_jni.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/api/java/jni/androidvideocapturer_jni.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/java/jni/androidvideocapturer_jni.cc View 1 2 3 4 5 6 3 chunks +8 lines, -7 lines 0 comments Download
M webrtc/api/java/jni/peerconnection_jni.cc View 1 1 chunk +6 lines, -3 lines 0 comments Download
M webrtc/api/mediacontroller.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M webrtc/api/peerconnection.cc View 1 2 3 4 5 6 8 chunks +17 lines, -9 lines 0 comments Download
M webrtc/api/peerconnectionfactory.cc View 1 3 chunks +6 lines, -5 lines 0 comments Download
M webrtc/api/peerconnectionfactoryproxy.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/api/proxy.h View 1 2 3 4 5 6 12 chunks +39 lines, -39 lines 0 comments Download
M webrtc/api/quicdatachannel.cc View 1 8 chunks +12 lines, -9 lines 0 comments Download
M webrtc/api/remoteaudiosource.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/test/fakeaudiocapturemodule.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/api/test/fakeperiodicvideocapturer.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M webrtc/api/test/fakertccertificategenerator.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/videocapturertracksource.cc View 1 4 chunks +8 lines, -6 lines 0 comments Download
M webrtc/api/webrtcsessiondescriptionfactory.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M webrtc/base/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/base/asyncinvoker.h View 1 4 chunks +50 lines, -25 lines 0 comments Download
M webrtc/base/asyncinvoker.cc View 1 5 chunks +19 lines, -12 lines 0 comments Download
M webrtc/base/asyncinvoker-inl.h View 4 chunks +16 lines, -7 lines 0 comments Download
M webrtc/base/autodetectproxy.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/base/base.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/base/bind.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/bind.h.pump View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/criticalsection_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/dbus.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/base/fakenetwork.h View 1 1 chunk +1 line, -1 line 0 comments Download
A webrtc/base/location.h View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
A webrtc/base/location.cc View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
M webrtc/base/messagequeue.h View 1 2 3 4 5 6 5 chunks +15 lines, -9 lines 0 comments Download
M webrtc/base/messagequeue.cc View 1 2 3 4 5 6 7 chunks +30 lines, -10 lines 0 comments Download
M webrtc/base/messagequeue_unittest.cc View 1 3 chunks +7 lines, -7 lines 0 comments Download
M webrtc/base/network.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M webrtc/base/networkmonitor.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/nullsocketserver_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/openssladapter.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/base/opensslstreamadapter.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/base/rtccertificategenerator.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/base/sharedexclusivelock_unittest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/base/signalthread.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/socket_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/stream.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/base/task_queue.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/thread.h View 1 2 3 4 5 3 chunks +7 lines, -9 lines 0 comments Download
M webrtc/base/thread.cc View 1 2 3 4 5 4 chunks +12 lines, -9 lines 0 comments Download
M webrtc/base/thread_unittest.cc View 1 26 chunks +51 lines, -45 lines 0 comments Download
M webrtc/base/timeutils_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/virtualsocket_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M webrtc/base/virtualsocketserver.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M webrtc/base/worker.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/examples/peerconnection/client/peer_connection_client.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/libjingle/xmpp/pingtask.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/libjingle/xmpp/xmpppump.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/libjingle/xmpp/xmppthread.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/media/base/fakenetworkinterface.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/engine/webrtcvideocapturer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/sctp/sctpdataengine.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/media/sctp/sctpdataengine_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_device/ios/audio_device_ios.mm View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/p2p/base/faketransportcontroller.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M webrtc/p2p/base/port.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/p2p/base/pseudotcp_unittest.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M webrtc/p2p/base/relayport.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/p2p/base/relayserver.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/p2p/base/stunrequest.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download
M webrtc/p2p/base/tcpport.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/transportcontroller.cc View 1 7 chunks +33 lines, -21 lines 0 comments Download
M webrtc/p2p/base/transportcontroller_unittest.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M webrtc/p2p/base/turnport.cc View 1 4 chunks +7 lines, -5 lines 0 comments Download
M webrtc/p2p/base/turnport_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/turnserver.cc View 1 4 chunks +8 lines, -4 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 1 6 chunks +9 lines, -9 lines 0 comments Download
M webrtc/p2p/client/socketmonitor.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/p2p/quic/quicconnectionhelper.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/stunprober/stunprober.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download
M webrtc/pc/audiomonitor.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M webrtc/pc/channel.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/pc/channel.cc View 1 2 3 4 5 6 35 chunks +75 lines, -55 lines 0 comments Download
M webrtc/pc/channel_unittest.cc View 1 2 3 4 5 6 13 chunks +28 lines, -20 lines 0 comments Download
M webrtc/pc/channelmanager.cc View 1 12 chunks +26 lines, -17 lines 0 comments Download
M webrtc/pc/mediamonitor.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.mm View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (3 generated)
Taylor Brandstetter
4 years, 6 months ago (2016-05-31 17:30:19 UTC) #2
tommi
almost there. I should have thought about the RTC_ prefix before. Hope that's not too ...
4 years, 6 months ago (2016-05-31 19:56:27 UTC) #3
pthatcher1
lgtm, assuming you fix the thing Tommi is asking for
4 years, 6 months ago (2016-05-31 20:21:02 UTC) #4
tommi
On 2016/05/31 20:21:02, pthatcher1 wrote: > lgtm, assuming you fix the thing Tommi is asking ...
4 years, 6 months ago (2016-06-01 12:50:55 UTC) #5
Taylor Brandstetter
https://codereview.webrtc.org/2019423006/diff/1/webrtc/base/location.cc File webrtc/base/location.cc (right): https://codereview.webrtc.org/2019423006/diff/1/webrtc/base/location.cc#newcode41 webrtc/base/location.cc:41: os << function_name_ << '@' << file_name_ << ':' ...
4 years, 6 months ago (2016-06-02 22:38:41 UTC) #6
pthatcher1
https://codereview.webrtc.org/2019423006/diff/1/webrtc/base/messagequeue.cc File webrtc/base/messagequeue.cc (right): https://codereview.webrtc.org/2019423006/diff/1/webrtc/base/messagequeue.cc#newcode474 webrtc/base/messagequeue.cc:474: LOG(LS_INFO) << "Message took " << diff << "ms ...
4 years, 6 months ago (2016-06-03 00:09:31 UTC) #7
tommi
lgtm https://codereview.webrtc.org/2019423006/diff/1/webrtc/base/location.cc File webrtc/base/location.cc (right): https://codereview.webrtc.org/2019423006/diff/1/webrtc/base/location.cc#newcode41 webrtc/base/location.cc:41: os << function_name_ << '@' << file_name_ << ...
4 years, 6 months ago (2016-06-03 05:45:11 UTC) #8
tommi
lgtm
4 years, 6 months ago (2016-06-03 06:00:02 UTC) #9
Taylor Brandstetter
On 2016/06/03 05:45:11, tommi-webrtc wrote: > lgtm > > https://codereview.webrtc.org/2019423006/diff/1/webrtc/base/location.cc > File webrtc/base/location.cc (right): > ...
4 years, 6 months ago (2016-06-03 15:58:42 UTC) #10
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/5d97a9a05b928ac50e14a0e4d8aaa42298cad056 Cr-Commit-Position: refs/heads/master@{#13104}
4 years, 6 months ago (2016-06-10 21:17:41 UTC) #13
Taylor Brandstetter
Committed patchset #9 (id:160001) manually as 5d97a9a05b928ac50e14a0e4d8aaa42298cad056 (presubmit successful).
4 years, 6 months ago (2016-06-10 21:17:41 UTC) #14
Taylor Brandstetter
4 years, 6 months ago (2016-06-10 21:23:15 UTC) #15
Message was sent while issue was closed.
I'm aware that this breaks the FYI bots; they should be fixed by this CL:
https://codereview.chromium.org/2037873003/

Powered by Google App Engine
This is Rietveld 408576698