class Bixby::Bench::Report
Attributes
allocation_stats[RW]
tms[RW]
Public Instance Methods
print()
click to toggle source
# File lib/bixby/bench/report.rb, line 7 def print if @allocation_stats then format = Benchmark::FORMAT.gsub(/\n$/, '') + " %16d %12d\n" allocations = allocation_stats.allocations.all.size memsize = allocation_stats.allocations.bytes.to_a.inject(&:+) puts @tms.format(format, allocations, memsize) else puts @tms end end