Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
Tag: v0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
LICENSE
README.md
Rakefile
method_profiler.gemspec

README.md

MethodProfiler

MethodProfiler collects performance information about the methods in your objects and creates reports to help you identify slow methods.

profiler = MethodProfiler.new(MyClass)
MyClass.new.foo
puts profiler.report

# MethodProfiler results for:
# MyClass
# +--------+--------------+-------------+
# | Method | Average Time | Total Calls |
# +--------+--------------+-------------+
# | foo    | 91.037000 ms | 1           |
# | bar    | 15.016000 ms | 2           |
# | baz    | 23.005000 ms | 1           |
# +--------+--------------+-------------+
Something went wrong with that request. Please try again.