mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
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:
parent
a32106163c
commit
0245c969a2
@ -344,7 +344,7 @@ already_AddRefed<PerformanceMark> Performance::Mark(
|
|||||||
|
|
||||||
InsertUserEntry(performanceMark);
|
InsertUserEntry(performanceMark);
|
||||||
|
|
||||||
if (profiler_is_collecting_markers()) {
|
if (profiler_thread_is_being_profiled_for_markers()) {
|
||||||
Maybe<uint64_t> innerWindowId;
|
Maybe<uint64_t> innerWindowId;
|
||||||
if (GetOwner()) {
|
if (GetOwner()) {
|
||||||
innerWindowId = Some(GetOwner()->WindowID());
|
innerWindowId = Some(GetOwner()->WindowID());
|
||||||
@ -790,7 +790,7 @@ already_AddRefed<PerformanceMeasure> Performance::Measure(
|
|||||||
|
|
||||||
MaybeEmitExternalProfilerMarker(aName, options, startMark, aEndMark);
|
MaybeEmitExternalProfilerMarker(aName, options, startMark, aEndMark);
|
||||||
|
|
||||||
if (profiler_is_collecting_markers()) {
|
if (profiler_thread_is_being_profiled_for_markers()) {
|
||||||
auto [startTimeStamp, endTimeStamp] =
|
auto [startTimeStamp, endTimeStamp] =
|
||||||
GetTimeStampsForMarker(startMark, aEndMark, options, aRv);
|
GetTimeStampsForMarker(startMark, aEndMark, options, aRv);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user