Click
A tool to track down object leaks in a Ruby process.
API documentation for master branch
Installation
Add this line to your application's Gemfile:
gem 'click'
And then execute:
$ bundle
Or install it yourself as:
$ gem install click
Example
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.
Contributing
- 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