Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igrigorik/slowgrowl
Surface slow code paths in your Rails 3 app via Growl
https://github.com/igrigorik/slowgrowl
Last synced: about 2 months ago
JSON representation
Surface slow code paths in your Rails 3 app via Growl
- Host: GitHub
- URL: https://github.com/igrigorik/slowgrowl
- Owner: igrigorik
- Created: 2010-08-04T03:04:47.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-05-08T16:31:50.000Z (over 13 years ago)
- Last Synced: 2024-05-08T18:35:19.511Z (8 months ago)
- Language: Ruby
- Homepage: http://www.igvita.com/2010/08/04/rails-3-internals-railtie-creating-plugins/
- Size: 146 KB
- Stars: 117
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SlowGrowl
=========Rails 3 plugin which surfaces slow code paths in your Rails application by integrating with the new Notifications API in Rails 3 with your system Growl (OSX) or libnotify (Linux) notification service. By default, any activity which takes longer than one second, will generate a growl alert, with the description of the action, time taken, and other meta data. A preview in action:
![slowgrowl notification](http://img.skitch.com/20100804-8w1wte8bad7tby418kmucs4hsm.png)
Integrating with Rails 3
------------------------# in your Gemfile
group :development do
gem 'slowgrowl'
endThat's it.
Optional Configuration for SlowGrowl
------------------------------------# in your config/environments/development.rb
config.slowgrowl.warn = 1000 # growl any action which takes > 1000ms (1s)
config.slowgrowl.sticky = true # make really slow (2x warn) alerts stickyResources
---------* [Rails 3 Internals: Railtie & Creating Plugins](http://www.igvita.com/2010/08/04/rails-3-internals-railtie-creating-plugins/)
* [Rails 3 Notifications API](http://edgeapi.rubyonrails.org/classes/ActiveSupport/Notifications.html)
* [Railties](http://edgeapi.rubyonrails.org/classes/Rails/Railtie.html)