Closed Bug 1563403 Opened 6 years ago Closed 6 years ago

Local PGO builds should use 3-tier machinery instead of a custom Makefile target

Categories

(Firefox Build System :: General, task)

task
Not set
normal

Tracking

(firefox73 fixed)

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: mshal, Assigned: mshal)

References

Details

Attachments

(2 files)

Local developers still need a way to trigger a full stack of PGO builds, but we could manage this internally via the 3-tier PGO machinery instead of the profiledbuild:: Makefile target (and relevant make variables).

For this bug, we should focus on just making the full stack mostly consistent with what happens today, perhaps still triggered by setting MOZ_PGO=1 in the environment. In the future we can add alternative workflows that pull an instrumented build or profile data from automation to skip some of the tiers.

Assignee: nobody → mshal

In automation this is normally handled by mozconfigs, but we should
disable it automatically during the profile-generate stage for users if
they have LTO enabled in their mozconfig while doing a 3-tier PGO build.

Local PGO builds now use 3-tier machinery under the hood. Instead of a
single object directory that gets cleaned in between the instrumented
and profile-use builds, now the instrumented build uses a separate
'${objdir}-instrumented' directory. This makes it easier to handle
within mach since we can drive the two builds with environment variables
and keep all build artifacts separate, without needing to do manual
cleanup in between.

Depends on D50097

Pushed by mshal@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/17c3d10bb8dd disable LTO on --enable-profile-generate; r=firefox-build-system-reviewers,chmanchester https://hg.mozilla.org/integration/autoland/rev/ad679d570e52 Use 3-tier PGO for local MOZ_PGO=1 builds; r=firefox-build-system-reviewers,dmajor,chmanchester
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
Regressions: 1601872
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: