From 4066542b277ac40b6cce71c8a77ea7d323258688 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Thu, 13 Mar 2025 18:07:25 +0800 Subject: [PATCH] dev-cmd/prof: fix `vernier` invocation `--allocation_sample_rate` was renamed to `--allocation_interval` in https://github.com/jhawthorn/vernier/commit/8ffadb304f0262f7ede9f590eacefa1453b26909 --- Library/Homebrew/dev-cmd/prof.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/prof.rb b/Library/Homebrew/dev-cmd/prof.rb index f2ec8555b5..ac16a53b14 100644 --- a/Library/Homebrew/dev-cmd/prof.rb +++ b/Library/Homebrew/dev-cmd/prof.rb @@ -50,7 +50,7 @@ module Homebrew elsif args.vernier? output_filename = "prof/vernier.json" 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 ohai "Profiling complete!" puts "Upload the results from #{output_filename} to:"