Commit 8e28966e authored by Hongchan Choi's avatar Hongchan Choi Committed by Chromium LUCI CQ

Add trace events to check thread priority in RealtimeAudioWorkletThread

The Finch setting might not be activated for some cases, and we want to
provide developers with thread priority information via chrome://tracing.

Bug: 1165842
Change-Id: I50cf618587acb8ce01237c894a21ad4965e22a62
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2631288Reviewed-by: default avatarRaymond Toy <rtoy@chromium.org>
Auto-Submit: Hongchan Choi <hongchan@chromium.org>
Commit-Queue: Hongchan Choi <hongchan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#844124}
parent d3df4878
...@@ -32,8 +32,12 @@ RealtimeAudioWorkletThread::RealtimeAudioWorkletThread( ...@@ -32,8 +32,12 @@ RealtimeAudioWorkletThread::RealtimeAudioWorkletThread(
// TODO(crbug.com/1022888): The worklet thread priority is always NORMAL on // TODO(crbug.com/1022888): The worklet thread priority is always NORMAL on
// Linux and Chrome OS regardless of this thread priority setting. // Linux and Chrome OS regardless of this thread priority setting.
params.thread_priority = base::ThreadPriority::REALTIME_AUDIO; params.thread_priority = base::ThreadPriority::REALTIME_AUDIO;
TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("audio-worklet"),
"RealtimeAudioWorkletThread() - REALTIME_AUDIO");
} else { } else {
params.thread_priority = base::ThreadPriority::NORMAL; params.thread_priority = base::ThreadPriority::NORMAL;
TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("audio-worklet"),
"RealtimeAudioWorkletThread() - NORMAL");
} }
if (++s_ref_count_ == 1) if (++s_ref_count_ == 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment