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

Cleanup, profiling experiments

This commit is contained in:
Mike Perham 2015-09-21 14:50:00 -07:00
parent f72ef672ab
commit 7fcd7aaa7d
3 changed files with 14 additions and 3 deletions

View file

@ -1,6 +1,7 @@
HEAD
-----------
- Add Ukranian locale [#2561, elrakita]
- Disconnect and retry Redis operations if we see a READONLY error [#2550]
- Add server middleware testing harness; see [wiki](https://github.com/mperham/sidekiq/wiki/Testing#testing-server-middleware) [#2534, ryansch]

View file

@ -11,6 +11,7 @@ end
gem 'rails'
gem 'sidekiq', :path => '..'
#gem 'ruby-prof'
#de Does not work with jruby or rbx:
#de gem 'pry-byebug'

View file

@ -3,9 +3,18 @@ Sidekiq.configure_client do |config|
end
Sidekiq.configure_server do |config|
config.redis = { :size => 25, :namespace => 'foo' }
config.on(:startup) { puts "Hello!" }
config.on(:quiet) { puts "Quiet down!" }
config.on(:shutdown) { puts "Goodbye!" }
config.on(:startup) { }
config.on(:quiet) { }
config.on(:shutdown) do
#result = RubyProf.stop
## Write the results to a file
## Requires railsexpress patched MRI build
# brew install qcachegrind
#File.open("callgrind.profile", "w") do |f|
#RubyProf::CallTreePrinter.new(result).print(f, :min_percent => 1)
#end
end
end
require 'sidekiq/web'