% ruby -C ext extconf.rb
% make -C ext
% ruby test.rb
| $:.unshift 'ext'
| require 'rblineprof'
|
| per_line = lineprof(__FILE__) do
1 | 1000.times do
|
269 | 1*2*3
243 | 4*5*6
840 | 7*8*9*10*11*12*13*14*15
204 | 2**32
655 | 2**128
|
| end
| end
|
| File.readlines(__FILE__).each_with_index do |line, num|
| if sample = per_line[num+1]
| printf "% 6d | %s", sample, line
| else
| printf " | %s", line
| end
| end
forked from tmm1/rblineprof
-
Notifications
You must be signed in to change notification settings - Fork 2
krunal/rblineprof
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
line-profiler for ruby 1.8
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published