Merge pull request #10475 from MikeMcQuaid/prof-exit-code

dev-cmd/prof: allow non-zero exit code.
This commit is contained in:
Mike McQuaid 2021-02-02 09:08:33 +00:00 committed by GitHub
commit f9b16fad7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ module Homebrew
if args.stackprof?
Homebrew.install_gem_setup_path! "stackprof"
with_env HOMEBREW_STACKPROF: "1" do
safe_system ENV["HOMEBREW_RUBY_PATH"], brew_rb, *args.named
system ENV["HOMEBREW_RUBY_PATH"], brew_rb, *args.named
end
output_filename = "prof/d3-flamegraph.html"
safe_system "stackprof --d3-flamegraph prof/stackprof.dump > #{output_filename}"