mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- Don't hack an exception onto String#scan (only needed it for debugging anyway)
This commit is contained in:
parent
40fbf7a670
commit
82e5bf79e9
1 changed files with 12 additions and 12 deletions
|
@ -1,22 +1,22 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
|
require 'ruby-prof'
|
||||||
require 'lib/net/servers/indexer'
|
require 'lib/net/servers/indexer'
|
||||||
|
|
||||||
|
#class String
|
||||||
|
#alias_method :orig_scan, :scan
|
||||||
|
#def scan(*args)
|
||||||
|
#raise
|
||||||
|
#return orig_scan(*args)
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
|
||||||
|
if ENV.has_key?("PROFILE")
|
||||||
|
RubyProf.start
|
||||||
|
end
|
||||||
|
|
||||||
def main(args)
|
def main(args)
|
||||||
if ENV.has_key?("PROFILE")
|
|
||||||
require 'ruby-prof'
|
|
||||||
RubyProf.start
|
|
||||||
|
|
||||||
#class String
|
|
||||||
#alias_method :orig_scan, :scan
|
|
||||||
#def scan(*args)
|
|
||||||
##raise
|
|
||||||
#return orig_scan(*args)
|
|
||||||
#end
|
|
||||||
#end
|
|
||||||
end
|
|
||||||
|
|
||||||
if args.length != 1
|
if args.length != 1
|
||||||
puts "Usage: #{$0} configfile"
|
puts "Usage: #{$0} configfile"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue