зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1626918 - Don't start/stop the real-time tracing code from the objects they measure. r=achronop
The profile now handles this. Differential Revision: https://phabricator.services.mozilla.com/D78506
This commit is contained in:
Родитель
33cf21901b
Коммит
3162f50be2
|
@ -270,8 +270,6 @@ int AudioStream::InvokeCubeb(Function aFunction, Args&&... aArgs) {
|
|||
nsresult AudioStream::Init(uint32_t aNumChannels,
|
||||
AudioConfig::ChannelLayout::ChannelMap aChannelMap,
|
||||
uint32_t aRate, AudioDeviceInfo* aSinkInfo) {
|
||||
StartAudioCallbackTracing();
|
||||
|
||||
auto startTime = TimeStamp::Now();
|
||||
TRACE();
|
||||
|
||||
|
@ -436,8 +434,6 @@ void AudioStream::Shutdown() {
|
|||
// Must not try to shut down cubeb from within the lock! wasapi may still
|
||||
// call our callback after Pause()/stop()!?! Bug 996162
|
||||
mCubebStream.reset();
|
||||
|
||||
StopAudioCallbackTracing();
|
||||
}
|
||||
|
||||
mState = SHUTDOWN;
|
||||
|
|
|
@ -67,7 +67,6 @@ MediaTrackGraphImpl::~MediaTrackGraphImpl() {
|
|||
"thread");
|
||||
LOG(LogLevel::Debug, ("MediaTrackGraph %p destroyed", this));
|
||||
LOG(LogLevel::Debug, ("MediaTrackGraphImpl::~MediaTrackGraphImpl"));
|
||||
StopAudioCallbackTracing();
|
||||
}
|
||||
|
||||
void MediaTrackGraphImpl::AddTrackGraphThread(MediaTrack* aTrack) {
|
||||
|
@ -3031,8 +3030,6 @@ MediaTrackGraphImpl::MediaTrackGraphImpl(
|
|||
|
||||
mLastMainThreadUpdate = TimeStamp::Now();
|
||||
|
||||
StartAudioCallbackTracing();
|
||||
|
||||
RegisterWeakAsyncMemoryReporter(this);
|
||||
|
||||
if (!IsNonRealtime()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче