lib/stackprof/report.rb in stackprof-0.2.16 vs lib/stackprof/report.rb in stackprof-0.2.17

- old
+ new

@@ -443,10 +443,10 @@ list.each_with_index do |(frame, info), index| call, total = info.values_at(:samples, :total_samples) break if total < node_minimum || (limit && index >= limit) - sample = '' + sample = ''.dup sample << "#{call} (%2.1f%%)\\rof " % (call*100.0/overall_samples) if call < total sample << "#{total} (%2.1f%%)\\r" % (total*100.0/overall_samples) fontsize = (1.0 * call / max_samples) * 28 + 10 size = (1.0 * total / overall_samples) * 2.0 + 0.5