prof: use ruby-prof 0.18.0

This is the newest version that works with Ruby 2.3.

Also, update the `.gitignore` to hide it while we're here.
This commit is contained in:
Mike McQuaid 2019-09-11 13:57:20 +01:00
parent 4a3442d1a4
commit 4b30a61732
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -134,6 +134,7 @@
**/vendor/bundle/ruby/*/gems/rspec-support-*/
**/vendor/bundle/ruby/*/gems/rspec-wait-*/
**/vendor/bundle/ruby/*/gems/rubocop-0*/
**/vendor/bundle/ruby/*/gems/ruby-prof-*/
**/vendor/bundle/ruby/*/gems/ruby-progressbar-*/
**/vendor/bundle/ruby/*/gems/simplecov-*/
**/vendor/bundle/ruby/*/gems/simplecov-cobertura-*/

View File

@ -18,7 +18,7 @@ module Homebrew
def prof
prof_args.parse
Homebrew.install_gem_setup_path! "ruby-prof"
Homebrew.install_gem_setup_path! "ruby-prof", version: "0.18.0"
FileUtils.mkdir_p "prof"
brew_rb = (HOMEBREW_LIBRARY_PATH/"brew.rb").resolved_path
safe_system "ruby-prof", "--printer=multi", "--file=prof", brew_rb, "--", *ARGV