Merge pull request #19478 from Homebrew/vernier-allocation_interval

dev-cmd/prof: fix `vernier` invocation
This commit is contained in:
Carlo Cabrera 2025-03-13 10:33:23 +00:00 committed by GitHub
commit 35b301e416
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ module Homebrew
elsif args.vernier? elsif args.vernier?
output_filename = "prof/vernier.json" output_filename = "prof/vernier.json"
Process::UID.change_privilege(Process.euid) if Process.euid != Process.uid Process::UID.change_privilege(Process.euid) if Process.euid != Process.uid
safe_system "vernier", "run", "--output=#{output_filename}", "--allocation_sample_rate=500", "--", safe_system "vernier", "run", "--output=#{output_filename}", "--allocation_interval=500", "--",
RUBY_PATH, brew_rb, *args.named RUBY_PATH, brew_rb, *args.named
ohai "Profiling complete!" ohai "Profiling complete!"
puts "Upload the results from #{output_filename} to:" puts "Upload the results from #{output_filename} to:"