Closed Bug 1932327 Opened 1 year ago Closed 1 year ago

Add support for MOZ_GECKO_PROFILER to mozinfo.py

Categories

(Core :: Gecko Profiler, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: aabh, Assigned: aabh)

References

Details

Attachments

(1 file)

Bug 1930215 will provide us with the ability to use profiler testing "utility" functions outside of the core profiler module, however we need to be careful not to try to run tests using these functions when we build firefox without the profiler enabled.

Within the core profiler module, this is not an issue, as we check for if CONFIG["MOZ_GECKO_PROFILER"]: within moz.build, but this test is not possible for tests outside the profiler, as they are enabled/disabled by skip-if statements within the [browser|chrome|xpcshell|...].toml file that configures them.

The features enabled/disabled within skip-if statements are defined in mozinfo.py, and we should extend this to reflect whether or not firefox has been built with the profiler enabled. Tests for this can then be written in test_mozinfo.py.

Pushed by abrouwersharries@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6bd17c729ffb Add geckoprofiler configuration option to mozinfo.py so we can skip tests if Firefox is built without the profiler r=profiler-reviewers,canaltinova
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
See Also: → 1940045
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: