diff options
| author | Randy Morgan <[email protected]> | 2013-08-19 23:15:05 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2013-08-19 23:15:05 +0900 |
| commit | dd1f24a10f6842e8c4e6254eef586c383791cd03 (patch) | |
| tree | ff2f90f0638263dacb91ad2e8fc992b10f3e8bc8 /test/profile.rb | |
| parent | bcaeecc9aee01c6e9f8b801074f18d35c2cc803c (diff) | |
| download | caxlsx-dd1f24a10f6842e8c4e6254eef586c383791cd03.tar.gz caxlsx-dd1f24a10f6842e8c4e6254eef586c383791cd03.zip | |
More work on page breaks
Diffstat (limited to 'test/profile.rb')
| -rw-r--r-- | test/profile.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/profile.rb b/test/profile.rb index ffe057e4..de00b32b 100644 --- a/test/profile.rb +++ b/test/profile.rb @@ -3,6 +3,8 @@ $:.unshift "#{File.dirname(__FILE__)}/../lib" require 'axlsx' require 'ruby-prof' +#RubyProf.measure_mode = RubyProf::MEMORY +# row = [] # Taking worst case scenario of all string data input = (32..126).to_a.pack('U*').chars.to_a @@ -11,10 +13,12 @@ input = (32..126).to_a.pack('U*').chars.to_a profile = RubyProf.profile do p = Axlsx::Package.new p.workbook.add_worksheet do |sheet| - 30.times do + 10000.times do sheet << row end end + p.to_stream end -printer = RubyProf::CallTreePrinter.new(profile) -printer.print(File.new('axlsx.qcachegrind', 'w')) + +printer = RubyProf::FlatPrinter.new(profile) +printer.print(STDOUT, {}) |
