mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
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:
parent
5f92d6da1e
commit
f92001344d
Notes:
git
2025-12-01 18:03:03 +00:00
Merged-By: tekknolagi <donotemailthisaddress@bernsteinbear.com>
@ -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.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user