Skip to content

Adding a visualizer for SpiderMonkey MIR/LIR graphs #5553

@eqrion

Description

@eqrion

The SpiderMonkey team has been prototyping a new web-based MIR/LIR graph visualizer. It takes a JSON format generated in SpiderMonkey and renders an interactive graph. It's a react component and we could publish it as an NPM package or vendor it here, whatever is easier.

We'd be interested in integrating it in the profiler when using samply/jitdump so that we can visualize the CFG of control flow graphs. There is already support for IONPERF=ir which gives us a linearized version of the graph. But it's a lot of data that's hard to scroll through and understand. We also have ideas about visualizing optimization passes, filters, and other things that wouldn't work in a flat text file.

We could emit the JSON separately and manually visualize them somewhere besides the profiler frontend, but then we lose out on sample count information (which is really useful for knowing what to look at).

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

No one assigned

    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