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-Commit-Position: refs/heads/master@{#13104}
This commit is contained in:
Taylor Brandstetter
2016-06-10 14:17:27 -07:00
parent 51e60305e6
commit 5d97a9a05b
90 changed files with 766 additions and 487 deletions

View File

@ -67,7 +67,8 @@ class ReadTask : public SharedExclusiveTask {
}
void PostRead(int* value) {
worker_thread_->Post(this, kMsgRead, new TypedMessageData<int*>(value));
worker_thread_->Post(RTC_FROM_HERE, this, kMsgRead,
new TypedMessageData<int*>(value));
}
private:
@ -100,7 +101,8 @@ class WriteTask : public SharedExclusiveTask {
}
void PostWrite(int value) {
worker_thread_->Post(this, kMsgWrite, new TypedMessageData<int>(value));
worker_thread_->Post(RTC_FROM_HERE, this, kMsgWrite,
new TypedMessageData<int>(value));
}
private: