summaryrefslogtreecommitdiff
path: root/yjit.h
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-10-18 19:46:35 -0400
committerGitHub <noreply@github.com>2023-10-18 23:46:35 +0000
commitd2b0c9da2e0148c8c12ca58e21c482c1e66c2358 (patch)
tree7f0ae18acae1a6d389b449498175cdf82bd66e20 /yjit.h
parent0ac6fb225d15cbcd35b8122b151a17eaa92fafaf (diff)
YJIT: Add a live ISeq counter
It's an estimator for application size and could be used as a compilation heuristic later. Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
Diffstat (limited to 'yjit.h')
-rw-r--r--yjit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit.h b/yjit.h
index 84a3655156..33b9214952 100644
--- a/yjit.h
+++ b/yjit.h
@@ -27,6 +27,7 @@
// Expose these as declarations since we are building YJIT.
extern uint64_t rb_yjit_call_threshold;
extern uint64_t rb_yjit_cold_threshold;
+extern uint64_t rb_yjit_live_iseq_count;
void rb_yjit_incr_counter(const char *counter_name);
bool rb_yjit_enabled_p(void);
bool rb_yjit_compile_new_iseqs(void);