Skip to content

Dynamic instruction coverage stats (--ujit-stats) #19

Closed

Description

@maximecb

We have to increase the proportion of instruction that gets executed in the JIT as opposed to the interpreter, to increase our "JIT coverage", so to speak. In order to do that, it would be really useful to have statistics such as the percentage of instructions executed by JIT over the total number of bytecode instructions executed.

I think it would also be very helpful to know which instructions trigger exits to the interpreter and how often, and display a list sorted by decreasing frequency. That will help us target our efforts to increase coverage.

Additional thoughts:

  • Maximize the readability of the --ujit-stats dump, make it human readable and easy to parse
  • Make it so the output of the dump can easily be converted into a CSV file (space separated) or grabbed by a script

Activity

  1. XrXr commented on Jan 26, 2021

    @XrXr

    59018fb gives a ratio of instructions that are ran in uJIT. We will make separate tickets for other statistics.

  2. added a commit that references this issue on Apr 26, 2021
    10ad81e
  3. added 2 commits that reference this issue on May 5, 2021
    8476860
    cc8984f
  4. added a commit that references this issue on Jun 2, 2021
    42efcf3
  5. 6 remaining items

  6. added a commit that references this issue on Nov 30, 2024
  7. added a commit that references this issue on Dec 19, 2025
  8. added a commit that references this issue on Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions