diff options
author | Maxime Chevalier-Boisvert <[email protected]> | 2021-07-20 12:34:04 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:38 -0400 |
commit | 1891dcaa9faee3684d6c8abfc34cab5b01a63632 (patch) | |
tree | 14d4cb8ab0f033106eba80a9d860bd1d74487276 /yjit_iface.c | |
parent | 736eb29a3c8f5ee18b76c98428350c8ab8b361a0 (diff) |
Add flag so we can easily tell if all stats avail. Comment out broken test.
Diffstat (limited to 'yjit_iface.c')
-rw-r--r-- | yjit_iface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yjit_iface.c b/yjit_iface.c index b6283a26f8..ff8c52c4b9 100644 --- a/yjit_iface.c +++ b/yjit_iface.c @@ -718,6 +718,9 @@ get_yjit_stats(rb_execution_context_t *ec, VALUE self) #if RUBY_DEBUG if (rb_yjit_opts.gen_stats) { + // Indicate that the complete set of stats is available + rb_hash_aset(hash, ID2SYM(rb_intern("all_stats")), Qtrue); + int64_t *counter_reader = (int64_t *)&yjit_runtime_counters; int64_t *counter_reader_end = &yjit_runtime_counters.last_member; @@ -763,7 +766,6 @@ get_yjit_stats(rb_execution_context_t *ec, VALUE self) VALUE value = LL2NUM((long long)exit_op_count[i]); rb_hash_aset(hash, key, value); } - } #endif |