Skip to content

Commit f920013

Browse files
authored
ZJIT: Fix erroneous version number for Iongraph (ruby#15357)
As per https://github.com/mozilla-spidermonkey/iongraph/blob/8d5e531305320216f86a24bfc9bc136a3627e832/src/iongraph.ts#L147, correct version number for the web-based tool is 1, rather than 2.
1 parent 5f92d6d commit f920013

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/jit/zjit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ stackprof path/to/zjit_exits_{pid}.dump
166166

167167
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.
168168

169-
`jq --slurp --null-input '.functions=inputs | .version=2' /tmp/zjit-iongraph-{PROCESS_PID}/func*.json > ~/Downloads/ion.json`
169+
`jq --slurp --null-input '.functions=inputs | .version=1' /tmp/zjit-iongraph-{PROCESS_PID}/func*.json > ~/Downloads/ion.json`
170170

171171
From there, you can use https://mozilla-spidermonkey.github.io/iongraph/ to view your trace.
172172

0 commit comments

Comments
 (0)