ZJIT: Fix erroneous version number for Iongraph (#15357)

As per
8d5e531305/src/iongraph.ts (L147),
correct version number for the web-based tool is 1, rather than 2.
This commit is contained in:
Aiden Fox Ivey 2025-12-01 13:02:35 -05:00 committed by GitHub
parent 5f92d6da1e
commit f92001344d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2025-12-01 18:03:03 +00:00
Merged-By: tekknolagi <donotemailthisaddress@bernsteinbear.com>

View File

@ -166,7 +166,7 @@ stackprof path/to/zjit_exits_{pid}.dump
Using `--zjit-dump-hir-iongraph` will dump all compiled functions into a directory named `/tmp/zjit-iongraph-{PROCESS_PID}`. Each file will be named `func_{ZJIT_FUNC_NAME}.json`. In order to use them in the Iongraph viewer, you'll need to use `jq` to collate them to a single file. An example invocation of `jq` is shown below for reference.
`jq --slurp --null-input '.functions=inputs | .version=2' /tmp/zjit-iongraph-{PROCESS_PID}/func*.json > ~/Downloads/ion.json`
`jq --slurp --null-input '.functions=inputs | .version=1' /tmp/zjit-iongraph-{PROCESS_PID}/func*.json > ~/Downloads/ion.json`
From there, you can use https://mozilla-spidermonkey.github.io/iongraph/ to view your trace.