Closed Bug 1918139 Opened 1 year ago Closed 1 year ago

Turn on --enable-perf by default for nightly builds

Categories

(Core :: JavaScript Engine, task, P4)

task

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: denispal, Assigned: denispal)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

Turning this feature on by default will be a big help when diagnosing problems in CI and Nightly. Currently we have to either push a separate build with --enable-perf so we get PGO training, or re-build this locally which may not always match the performance of a proper build.

There is some perf assessment that needs to be done to make sure enabling this doesn't regress anything.

Is there any privacy concerns that should be addressed with a data-review?

(In reply to Nicolas B. Pierron [:nbp] from comment #1)

Is there any privacy concerns that should be addressed with a data-review?

Hmm, were you thinking of anything specific? I don't think there should be any privacy concerns. The intention is to build with --enable-perf by default on nightly so we can toggle jitdump output through an environment variable.

(In reply to Denis Palmeiro [:denispal] from comment #2)

(In reply to Nicolas B. Pierron [:nbp] from comment #1)

Is there any privacy concerns that should be addressed with a data-review?

Hmm, were you thinking of anything specific? I don't think there should be any privacy concerns. The intention is to build with --enable-perf by default on nightly so we can toggle jitdump output through an environment variable.

I do not have anything specific in mind, just asking in case there is any probe which does any reporting without user interaction, such as adding information to the crash-dumps or telemetry.

Ah, this is purely for local profiling so no client information will be collected by telemetry or crash dumps.

We currently leak ExecutablePools if the perf spewer is enabled since perf maps cannot properly understand if an address region was reused.
Using jitdump, we now have load records so this should no longer be an issue.

Depends on D226642

The JitCodeAPI was initially planned to surface some PerfSpewer information to the Gecko Profiler, but it's currently unused and likely unneeded.

Depends on D226644

Attachment #9432830 - Attachment description: WIP: Bug 1918139: Use SprintfBuf instead of snprintf to fix build errors → Bug 1918139: Use SprintfBuf instead of snprintf to fix build errors. r=iain!
Attachment #9432831 - Attachment description: WIP: Bug 1918139: Fix plain build errors due to undeclared identifier JS_smprintf → Bug 1918139: Fix plain build errors due to undeclared identifier JS_smprintf. r=iain!
Attachment #9432832 - Attachment description: WIP: Bug 1918139: Do not leak ExecutablePools when perfspewer is active. → Bug 1918139: Do not leak ExecutablePools when perfspewer is active. r=iain!
Attachment #9432833 - Attachment description: WIP: Bug 1918139: Enable perf jitdump integration by default for nightly → Bug 1918139: Enable perf jitdump integration by default for nightly. r=iain!
Attachment #9432834 - Attachment description: WIP: Bug 1918139: Remove JitCodeAPI since it's unused → Bug 1918139: Remove JitCodeAPI since it's unused. r=iain!
Pushed by dpalmeiro@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/994185187bb0 Use SprintfBuf instead of snprintf to fix build errors. r=iain https://hg.mozilla.org/integration/autoland/rev/6ac63b456ee4 Fix plain build errors due to undeclared identifier JS_smprintf. r=iain https://hg.mozilla.org/integration/autoland/rev/41cb4171d24a Do not leak ExecutablePools when perfspewer is active. r=iain https://hg.mozilla.org/integration/autoland/rev/eb055c6db954 Enable perf jitdump integration by default for nightly. r=iain https://hg.mozilla.org/integration/autoland/rev/91dc4a926783 Remove JitCodeAPI since it's unused. r=iain

Backed out for causing build bustages @bug1875795.js.

Flags: needinfo?(dpalmeiro)
Pushed by dpalmeiro@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/014306ce6604 Use SprintfBuf instead of snprintf to fix build errors. r=iain https://hg.mozilla.org/integration/autoland/rev/5e5d4534f1e0 Fix plain build errors due to undeclared identifier JS_smprintf. r=iain https://hg.mozilla.org/integration/autoland/rev/82e8a7d7fce6 Do not leak ExecutablePools when perfspewer is active. r=iain https://hg.mozilla.org/integration/autoland/rev/ff8540bd68df Enable perf jitdump integration by default for nightly. r=iain https://hg.mozilla.org/integration/autoland/rev/e81aa9a01c77 Remove JitCodeAPI since it's unused. r=iain
Flags: needinfo?(dpalmeiro)
See Also: → 1987005
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: