Add support for Location (RTC_FROM_HERE) to ProcessThread::RegisterModule.
This makes a few things a lot clearer when looking at perf trace data: * What module instances (where they were created) are called * On what thread * How frequently * For how long ProcessThread will be replaced by TaskQueue moving forward and this is a step towards understanding the behavior of the affected code. BUG=webrtc:7219 Review-Url: https://codereview.webrtc.org/2729053002 Cr-Commit-Position: refs/heads/master@{#16998}
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/base/location.h"
|
||||
#include "webrtc/common_video/h264/h264_common.h"
|
||||
#include "webrtc/modules/video_coding/frame_buffer.h"
|
||||
#include "webrtc/modules/video_coding/jitter_buffer.h"
|
||||
@ -199,7 +200,7 @@ class ProcessThreadMock : public ProcessThread {
|
||||
MOCK_METHOD0(Start, void());
|
||||
MOCK_METHOD0(Stop, void());
|
||||
MOCK_METHOD1(WakeUp, void(Module* module));
|
||||
MOCK_METHOD1(RegisterModule, void(Module* module));
|
||||
MOCK_METHOD2(RegisterModule, void(Module* module, const rtc::Location&));
|
||||
MOCK_METHOD1(DeRegisterModule, void(Module* module));
|
||||
void PostTask(std::unique_ptr<rtc::QueuedTask> task) /*override*/ {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user