diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-04-05 07:32:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-05 10:32:04 -0400 |
commit | 615a1bc470587614129c8a7f352286cf9d1c0fc6 (patch) | |
tree | 1751f7bef797ead4b47353fafdf92dd7ca453e9b /yjit/src/stats.rs | |
parent | 3e1e09b2b7ee9a6b45d15d28997c1357eab53f14 (diff) | |
download | ruby-615a1bc470587614129c8a7f352286cf9d1c0fc6.tar.gz |
YJIT: Count the number of actually written bytes (#7658)
Diffstat (limited to 'yjit/src/stats.rs')
-rw-r--r-- | yjit/src/stats.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs index 0e832dbe71..f937c6e625 100644 --- a/yjit/src/stats.rs +++ b/yjit/src/stats.rs @@ -480,6 +480,8 @@ fn rb_yjit_gen_stats_dict(context: bool) -> VALUE { #[cfg(feature="stats")] hash_aset_usize!(hash, "yjit_alloc_size", global_allocation_size()); + // `context` is true at RubyVM::YJIT._print_stats for --yjit-stats. It's false by default + // for RubyVM::YJIT.runtime_stats because counting all Contexts could be expensive. if context { let live_context_count = get_live_context_count(); let context_size = std::mem::size_of::<Context>(); |