1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

YJIT_STATS instead of RUBY_DEBUG for --yjit-stats in help printout

This commit is contained in:
Alan Wu 2021-10-07 17:53:59 -04:00
parent d4fae3e390
commit 1f25bba7b7

2
ruby.c
View file

@ -356,7 +356,7 @@ usage(const char *name, int help, int highlight, int columns)
M("--jit-min-calls=num", "", "Number of calls to trigger JIT (for testing, default: 10000)"), M("--jit-min-calls=num", "", "Number of calls to trigger JIT (for testing, default: 10000)"),
}; };
static const struct message yjit_options[] = { static const struct message yjit_options[] = {
#if RUBY_DEBUG #if YJIT_STATS
M("--yjit-stats", "", "Enable collecting YJIT statistics"), M("--yjit-stats", "", "Enable collecting YJIT statistics"),
#endif #endif
M("--yjit-exec-mem-size=num", "", "Size of executable memory block in MiB (default: 256)"), M("--yjit-exec-mem-size=num", "", "Size of executable memory block in MiB (default: 256)"),