Skip to content

Commit 07f2c28

Browse files
authored
Merge pull request ruby#84 from Shopify/yjit-stats-env
Allow to enable `--yjit-stats` via a env variable
2 parents f943c54 + ba01529 commit 07f2c28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

yjit_iface.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,8 @@ rb_yjit_init(struct rb_yjit_options *options)
10351035
rb_yjit_opts = *options;
10361036
rb_yjit_opts.yjit_enabled = true;
10371037

1038+
rb_yjit_opts.gen_stats |= !!getenv("YJIT_STATS");
1039+
10381040
// Normalize command-line options to default values
10391041
if (rb_yjit_opts.exec_mem_size < 1) {
10401042
rb_yjit_opts.exec_mem_size = 256;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy