Closed Bug 1673623 Opened 4 years ago Closed 4 years ago

Initialize the baseprofiler in xpcshell tests

Categories

(Core :: Gecko Profiler, task, P1)

task

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: gregtatum, Assigned: gregtatum)

References

Details

Attachments

(1 file)

Currently only the gecko profiler is initialized, which can lead to incorrect behavior, especially around the marker options for sending markers to the main thread.

The baseprofiler is required to be in place first for features that are only
implemented in the baseprofiler, such as the MarkerThreadId::MainThread().
This patch adds the initialization, and upates the ProfilerIOInterposeObserver
to use baseprofiler-only features.

The issue before, was that the base profiler was not initialized, and the
mozilla::baseprofiler::profiler_main_thread_id() was incorrectly reporting that
the main thread index was 0.

No tests were changed in this patch, but it does have coverage with:

tools/profiler/tests/xpcshell/test_feature_fileioall.js

This test would fail with just the interposer changes.

Severity: -- → S3
Priority: P3 → P1
Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2f48d38b9bc9 Initialize the baseprofiler in xpcshell tests; r=gerald
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch

Hi, I think this may have introduced bug 1684389

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: