Sha256: 68ef2cbf4c8a3496e096e142147906c9f4a1382b592558bd8c21b70072532eda
Contents?: true
Size: 897 Bytes
Versions: 1
Compression:
Stored size: 897 Bytes
Contents
require 'ruby-prof' require 'osheet/xmlss' class OsheetXmlssProfilerRunner attr_reader :result def initialize(n) RubyProf.measure_mode = RubyProf::MEMORY @result = RubyProf.profile do Osheet::Workbook.new { title "basic" worksheet { name "one dollar" 5.times { column } 1000.times do row { [1, "text", 123.45, "0001267", "$45.23"].each do |data_value| cell { data data_value } end } end } }.to_file('./bench/profiler_1000.xls', :pp => 2) end end def print_flat(outstream, opts={}) RubyProf::FlatPrinter.new(@result).print(outstream, opts) #RubyProf::GraphPrinter.new(@result).print(outstream, opts) end def print_graph(outstream, opts={}) RubyProf::GraphPrinter.new(@result).print(outstream, opts) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
osheet-xmlss-1.0.0.rc.1 | bench/profiler_runner.rb |