rblineprof usage in Hamlit repo
• To find bottlenecks in the compiled
template code
$ bin/lineprof test/haml/templates/standard.haml
[Lineprof] ======================================================================
/private/var/folders/my/syd7zn_d495dmjm7_y8lqby80000gp/T/
compiled20151204-39353-9l8fvy
| 16 ; _hamlit_compiler1 = ( 1 + 9 + 8 + 2 #numbers should work and
this should be ignored;
0.2ms 200 | 17 ; ); _buf <<
(::Hamlit::Utils.escape_html(((_hamlit_compiler1).to_s))); _buf << ("\n\n
Quotes should be loved! Just like people!
\n".freeze);
57.5ms 100 | 18 ; 120.times do |number|;
| 19 ; _hamlit_compiler2 = ( number;
31.5ms 24000 | 20 ; ); _buf <<