Tackle
Ruby gem for instrumenting your code
Status
Installation
Add this line to your application's Gemfile:
gem 'tackle'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tackle
How to use
class Example
attr_reader :count
def foo(count)
@count = count
end
def
(1..10000).each { |i| i }
end
end
Tackle.decorate('Example', 'foo') do
puts "META: I was called with #{@count}"
end
Tackle.time('Example', 'bar') do |t|
puts "Time elapsed #{t * 1000} milliseconds"
end
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