0.0
No commit activity in last 3 years
No release in over 3 years
Tracks how long a method takes, and logs with color highlighting expensive method calls.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.8.3
>= 0
~> 3.12

Runtime

 Project Readme

track_method¶ ↑

Tracks how long a method takes, and logs with color highlighting expensive method calls.

Contributing to track_method¶ ↑

require 'rubygems'
require 'track_method'

class Foo
  def bar(x, y, z)
    sleep [0.2, 0.1, 0.0, 1.5, 0.4].shuffle.first
  end
end

Foo.track_method :bar
10.times { Foo.new.bar(1, 2, 3) }

Result¶ ↑

Copyright © 2012 kazuyoshi tlacaelel. See LICENSE.txt for further details.