1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Remove profile feature, fixes #1592

This commit is contained in:
Mike Perham 2014-03-23 15:00:40 -07:00
parent 4efee23067
commit 7a74a8ee22
3 changed files with 1 additions and 16 deletions

View file

@ -46,6 +46,7 @@ end
- Remove deprecated Sidekiq::Client.registered\_\* APIs
- Remove deprecated support for the old Sidekiq::Worker#retries\_exhausted method.
- Removed 'sidekiq/yaml\_patch', this was never documented or recommended.
- Removed --profile option, #1592
- Remove usage of the term 'Worker' in the UI for clarity. Users would call both threads and
processes 'workers'. Instead, use "Thread", "Process" or "Job".
- The Workers tab is now renamed to Busy and contains a list of live

View file

@ -17,7 +17,6 @@ module Sidekiq
:require => '.',
:environment => nil,
:timeout => 8,
:profile => false,
:error_handlers => [],
:lifecycle_events => {
:startup => [],

View file

@ -75,10 +75,6 @@ module Sidekiq
@launcher = Sidekiq::Launcher.new(options)
begin
if options[:profile]
require 'ruby-prof'
RubyProf.start
end
launcher.run
while readable_io = IO.select([self_read])
@ -111,13 +107,6 @@ module Sidekiq
Sidekiq.logger.debug "Got #{sig} signal"
case sig
when 'INT'
if Sidekiq.options[:profile]
result = RubyProf.stop
printer = RubyProf::GraphHtmlPrinter.new(result)
File.open("profile.html", 'w') do |f|
printer.print(f, :min_percent => 1)
end
end
# Handle Ctrl-C in JRuby like MRI
# http://jira.codehaus.org/browse/JRUBY-4637
raise Interrupt
@ -277,10 +266,6 @@ module Sidekiq
opts[:index] = Integer(arg.match(/\d+/)[0])
end
o.on '-p', '--profile', "Profile all code run by Sidekiq" do |arg|
opts[:profile] = arg
end
o.on "-q", "--queue QUEUE[,WEIGHT]", "Queues to process with optional weights" do |arg|
queue, weight = arg.split(",")
parse_queue opts, queue, weight