Skip to content

Commit 878f9eb

Browse files
committed
jt profile: simplify by passing a filename to out: of Process.spawn
1 parent b86e89f commit 878f9eb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tool/jt.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,9 +2121,7 @@ def profile(*args)
21212121
if truffleruby?
21222122
app_open svg_filename
21232123
else
2124-
File.open(flame_file, 'w') do |f|
2125-
run_ruby(env, '-S', 'stackprof', '--d3-flamegraph', flame_file_dump, {:out => f})
2126-
end
2124+
run_ruby(env, '-S', 'stackprof', '--d3-flamegraph', flame_file_dump, out: flame_file)
21272125
app_open flame_file
21282126
end
21292127
end

0 commit comments

Comments
 (0)