YJIT: Make --yjit-stats always visible on --help (#6946)

This commit is contained in:
Takashi Kokubun 2022-12-19 07:19:56 -08:00 committed by GitHub
parent 1148636e3d
commit bcdc9cf159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2022-12-19 15:20:17 +00:00
Merged-By: maximecb <maximecb@ruby-lang.org>

2
ruby.c
View File

@ -337,9 +337,7 @@ usage(const char *name, int help, int highlight, int columns)
#endif
#if USE_YJIT
static const struct ruby_opt_message yjit_options[] = {
#if YJIT_STATS
M("--yjit-stats", "", "Enable collecting YJIT statistics"),
#endif
M("--yjit-exec-mem-size=num", "", "Size of executable memory block in MiB (default: 64)"),
M("--yjit-call-threshold=num", "", "Number of calls to trigger JIT (default: 10)"),
M("--yjit-max-versions=num", "", "Maximum number of versions per basic block (default: 4)"),