Skip to content
Snippets Groups Projects
Commit 2f44990e authored by Xu Cheng's avatar Xu Cheng
Browse files

Revert "audit: add benchmark inject code"

This reverts commit fb23d603ded2796299ed7fc2f4ffee22870b7ea6.
parent 6af47815
No related branches found
No related tags found
No related merge requests found
......@@ -20,26 +20,6 @@ module Homebrew
ENV.activate_extensions!
ENV.setup_build_environment
if ARGV.switch? "D"
FormulaAuditor.module_eval do
instance_methods.grep(/audit_/).map do |name|
method = instance_method(name)
define_method(name) do |*args, &block|
begin
time = Time.now
method.bind(self).(*args, &block)
ensure
$times[name] ||= 0
$times[name] += Time.now - time
end
end
end
end
$times = {}
at_exit { puts $times.sort_by{ |k, v| v }.map{ |k, v| "#{k}: #{v}" } }
end
ff = if ARGV.named.empty?
Formula
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment