summaryrefslogtreecommitdiff
path: root/yjit_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'yjit_core.c')
-rw-r--r--yjit_core.c8
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");
}