Easy-to-use line profiler for Ruby.
tmm1/rblineprof is a powerful line profiler for Ruby. But rblineprof does not include a result formatter and its API is difficult to use. This lineprof gem has a colored formatter, which is the same as rack-lineprof, and simple API.
require 'lineprof'
Lineprof.profile do
sleep 0.001
100.times do
sleep 0.001
1*2*3
4*5*6
7*8*9*10*11*12*13*14*15
2**32
2**128
end
end
MIT License