Closed Bug 1759173 Opened 2 years ago Closed 2 years ago

Add support for perf's jitdump format

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: jrmuizel, Assigned: denispal)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

V8 supports this (--perf-basic-prof, --perf-prof-unwinding-info etc.) and it would be useful for being able to profile natively with perf. It could also be useful for being able to compare profiles of JS in V8 vs Spidermonkey.

See Also: → 1530552
Blocks: sm-jits
Severity: -- → N/A
Type: task → enhancement
Priority: -- → P3

I would definitely like to support this so we can get better visibility into which functions are behaving poorly versus chrome. Right now we can find the problematic function pretty easily in the gecko profiler, but it's hard to understand why it's behaving poorly. So, I don't mind taking this if nobody else is planning on working on it.

Assignee: nobody → dpalmeiro

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

For what is worth, we already have some perf instrumentation here:

And more here: (requires building with --enable-perf and running with IONPERF=func/block)
https://searchfox.org/mozilla-central/rev/44527269dd96db7a3da81aafff33c84a031864c7/js/src/jit/PerfSpewer.cpp

This supports the old perf.map format, not the newer jitdump format. (some more notes here)

The existing support for perf symbol maps will be removed in favour of jitdump.

Pushed by dpalmeiro@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/abefa20046ff
Remove perf symbol maps and add Jitdump support for Ion, Baseline, and Inline Caches r=iain
https://hg.mozilla.org/integration/autoland/rev/ba893c6048b5
Add source and IR annotation support for Jitdump r=iain
Regressions: 1773304
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch

== Change summary for alert #34478 (as of Tue, 14 Jun 2022 19:14:42 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
2% buzzfeed PerceptualSpeedIndex macosx1015-64-shippable-qr fission warm webrender 269.75 -> 264.25

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=34478

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

Attachment

General

Created:
Updated:
Size: