For a quick overview of code, line profilers are very good. Python has very good line profiler. Searching gave some results but this post is very old the packages mentioned here have not been maintained. ruby-prof
and Ruby's benchmark
are good but I don't see any line-by-line profiling results.
Is there any good line profiler that can profile Ruby code and methods?