Add performance tracing to AudioDevice inits.
Adds tracing to AudioDeviceModuleImpl::InitRecording and AudioDeviceModuleImpl::StartRecording to visualize that they are a significant part of startup time in performance recordings. BUG=webrtc:5723 R=henrika@webrtc.org Review URL: https://codereview.webrtc.org/1874983003 . Cr-Commit-Position: refs/heads/master@{#12315}
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
*/
|
||||
|
||||
#include "webrtc/base/refcount.h"
|
||||
#include "webrtc/base/trace_event.h"
|
||||
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
|
||||
#include "webrtc/modules/audio_device/audio_device_config.h"
|
||||
#include "webrtc/modules/audio_device/audio_device_impl.h"
|
||||
@ -1454,6 +1455,7 @@ int32_t AudioDeviceModuleImpl::InitPlayout()
|
||||
|
||||
int32_t AudioDeviceModuleImpl::InitRecording()
|
||||
{
|
||||
TRACE_EVENT0("webrtc", "AudioDeviceModuleImpl::InitRecording");
|
||||
CHECK_INITIALIZED();
|
||||
_audioDeviceBuffer.InitRecording();
|
||||
return (_ptrAudioDevice->InitRecording());
|
||||
@ -1515,6 +1517,7 @@ bool AudioDeviceModuleImpl::Playing() const
|
||||
|
||||
int32_t AudioDeviceModuleImpl::StartRecording()
|
||||
{
|
||||
TRACE_EVENT0("webrtc", "AudioDeviceModuleImpl::StartRecording");
|
||||
CHECK_INITIALIZED();
|
||||
return (_ptrAudioDevice->StartRecording());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user