Skip to content

Commit

Permalink
YJIT: Allow tracing fallback counters (ruby#11347)
Browse files Browse the repository at this point in the history
* YJIT: Allow tracing fallback counters

* Update yjit.md about --yjit-trace-exits=counter
  • Loading branch information
k0kubun authored Aug 8, 2024
1 parent ec5436b commit 77ffdfe
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 153 deletions.
2 changes: 1 addition & 1 deletion doc/yjit/yjit.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ YJIT supports all command-line options supported by upstream CRuby, but also add
This can allow you to use a lower executable memory size limit, but may cause a slight drop in performance when the limit is hit.
- `--yjit-perf`: enable frame pointers and profiling with the `perf` tool
- `--yjit-trace-exits`: produce a Marshal dump of backtraces from all exits. Automatically enables `--yjit-stats`
- `--yjit-trace-exits=COUNTER`: produce a Marshal dump of backtraces from specified exits. Automatically enables `--yjit-stats`
- `--yjit-trace-exits=COUNTER`: produce a Marshal dump of backtraces from a counted exit or a fallback. Automatically enables `--yjit-stats`
- `--yjit-trace-exits-sample-rate=N`: trace exit locations only every Nth occurrence. Automatically enables `--yjit-trace-exits`

Note that there is also an environment variable `RUBY_YJIT_ENABLE` which can be used to enable YJIT.
Expand Down
Loading

0 comments on commit 77ffdfe

Please sign in to comment.