Skip to content

ZJIT: Add --zjit-trace-exits functionality #763

@aidenfoxivey

Description

@aidenfoxivey

YJIT has functionality to record the Ruby source of a compiled method and then dump it into a Marshal format (serialized Ruby object) to be consumed in https://github.com/tmm1/stackprof.

This could be very useful to port to ZJIT (or rewrite) in order to determine what kind of instructions are frequently causing side-exits. (Which slow down execution.)

Tentatively, I plan to read the source that defines --yjit-trace-exits and determine the design decisions made when implementing it, then mapping those over to the decisions made for ZJIT.

(This is a proposal in which I would love feedback as to whether this is a reasonable choice or not.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions