diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2021-09-15 13:59:50 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:41 -0400 |
commit | 82405ac48ae457de9b54e18545743ab2a58bf989 (patch) | |
tree | 78f93006baea9bd119e8ad93221a1581249f843a /yjit_core.c | |
parent | 1f09eb66e6cc1019ba88e421f1ba8186c071a6ed (diff) |
Add counters for tracking invalidations
Diffstat (limited to 'yjit_core.c')
-rw-r--r-- | yjit_core.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yjit_core.c b/yjit_core.c index 77e5b98190..6c2e1b0ae0 100644 --- a/yjit_core.c +++ b/yjit_core.c @@ -557,6 +557,10 @@ add_block_version(blockid_t blockid, block_t* block) RB_OBJ_WRITTEN(iseq, Qundef, object); } } + +#if YJIT_STATS + yjit_runtime_counters.compiled_block_count++; +#endif } // Create a new outgoing branch entry for a block @@ -1144,6 +1148,10 @@ invalidate_block_version(block_t *block) yjit_free_block(block); +#if YJIT_STATS + yjit_runtime_counters.invalidation_count++; +#endif + // fprintf(stderr, "invalidation done\n"); } |