Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby
tree: 5f1e64a6a0

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.my_method
puts profiler.report

# =========== MethodProfiler data ===========
# Method          Average Time    Total Calls
# ===========================================
# my_method       239 ms          1
# foo              84 ms          4
# bar              14 ms          3
# ===========================================
Something went wrong with that request. Please try again.