File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -53,20 +53,24 @@ def get_rss
53
53
YB_OUTPUT_FILE = File . expand_path yb_env_var
54
54
55
55
def return_results ( times )
56
+ yjit_bench_results = {
57
+ "RUBY_DESCRIPTION" => RUBY_DESCRIPTION ,
58
+ "values" => times ,
59
+ }
60
+
56
61
# Collect our own peak mem usage as soon as reasonable after finishing the last iteration.
57
62
peak_mem_bytes = get_rss
58
63
puts "RSS: %.1fMiB" % ( peak_mem_bytes / 1024.0 / 1024.0 )
64
+ yjit_bench_results [ "rss" ] = peak_mem_bytes
65
+
66
+ if defined? ( RubyVM ::YJIT ) && RubyVM ::YJIT . stats_enabled?
67
+ yjit_bench_results [ "yjit_stats" ] = RubyVM ::YJIT . runtime_stats
68
+ end
59
69
60
70
require "json"
61
71
out_path = YB_OUTPUT_FILE
62
72
system ( 'mkdir' , '-p' , File . dirname ( out_path ) )
63
73
64
- yjit_bench_results = {
65
- "RUBY_DESCRIPTION" => RUBY_DESCRIPTION ,
66
- "values" => times ,
67
- "rss" => peak_mem_bytes
68
- }
69
-
70
74
# Using default path? Print where we put it.
71
75
puts "Writing file #{ out_path } " unless ENV [ "RESULT_JSON_PATH" ]
72
76
You can’t perform that action at this time.
0 commit comments