Bug 1902995 - Check if profiler thread is being profiled for markers. r=canaltinova

Differential Revision: https://phabricator.services.mozilla.com/D213928
This commit is contained in:
Michael van Straten 2024-06-18 14:09:48 +00:00
parent a32106163c
commit 0245c969a2

View File

@ -344,7 +344,7 @@ already_AddRefed<PerformanceMark> Performance::Mark(
InsertUserEntry(performanceMark);
if (profiler_is_collecting_markers()) {
if (profiler_thread_is_being_profiled_for_markers()) {
Maybe<uint64_t> innerWindowId;
if (GetOwner()) {
innerWindowId = Some(GetOwner()->WindowID());
@ -790,7 +790,7 @@ already_AddRefed<PerformanceMeasure> Performance::Measure(
MaybeEmitExternalProfilerMarker(aName, options, startMark, aEndMark);
if (profiler_is_collecting_markers()) {
if (profiler_thread_is_being_profiled_for_markers()) {
auto [startTimeStamp, endTimeStamp] =
GetTimeStampsForMarker(startMark, aEndMark, options, aRv);