A tool to track down object leaks in a Ruby process.
Add this line to your application's Gemfile:
gem 'click', git: "https://github.com/pivotal-cf-experimental/click.git"
And then execute:
$ bundle
See the demo app for an example of a simple Sinatra app that uses an existing Sequel database and that leaks objects when connecting to a certain endpoint.
Try running the app and then running click-console /tmp/click_demo_memory.sqlite
to inspect the live database.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request