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 Review URL: https://codereview.webrtc.org/2019423006 . Cr-Original-Commit-Position: refs/heads/master@{#13104} Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc Cr-Mirrored-Commit: 5d97a9a05b928ac50e14a0e4d8aaa42298cad056
diff --git a/base/networkmonitor.cc b/base/networkmonitor.cc index 8587691..12076bd 100644 --- a/base/networkmonitor.cc +++ b/base/networkmonitor.cc
@@ -31,7 +31,7 @@ void NetworkMonitorBase::OnNetworksChanged() { LOG(LS_VERBOSE) << "Network change is received at the network monitor"; - worker_thread_->Post(this, UPDATE_NETWORKS_MESSAGE); + worker_thread_->Post(RTC_FROM_HERE, this, UPDATE_NETWORKS_MESSAGE); } void NetworkMonitorBase::OnMessage(Message* msg) {