Closed Bug 1372851 Opened 7 years ago Closed 7 years ago

Disable TraceLogger by default in opt builds

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
Baseline can emit TraceLogger instrumentation for entering/exiting a script, and just emitting this code can be pretty slow. In profiles it's often like 10% of Baseline compilation time for small scripts, because we have to push/pop all volatile registers etc. Furthermore, at runtime we jump over this code if TL is disabled, but it's quite a big chunk of JIT code so it still pollutes the instruction cache for no good reason.

We have seen TL overhead before and it's hard to justify considering only a handful of SpiderMonkey hackers use it.

The attached patch disables TL by default in opt builds. It's still enabled in debug builds (to catch obvious build issues) and it can be enabled in opt builds with --enable-trace-logging.
Attachment #8877515 - Flags: review?(bbouvier)
Comment on attachment 8877515 [details] [diff] [review]
Patch

Review of attachment 8877515 [details] [diff] [review]:
-----------------------------------------------------------------

Sounds good to me, thanks for the patch.
Attachment #8877515 - Flags: review?(bbouvier) → review+
Pushed by jandemooij@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/401475243963
Disable TraceLogger by default in opt builds. r=bbouvier
This improved a bunch of shell benchmarks on AWFY: a few % on Sunspider, Octane-CodeLoad, and also some pretty big improvements on some six-speed tests.
a perf improvement:
== Change summary for alert #7286 (as of June 14 2017 11:04 UTC) ==

Improvements:

  3%  quantum_pageload_facebook summary windows7-32 opt e10s     1,436.17 -> 1,389.96

For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=7286
https://hg.mozilla.org/mozilla-central/rev/401475243963
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: