public
Description: RubyProf report printer that generates Excel XLS files
Homepage: http://endofline.wordpress.com
Clone URL: git://github.com/adamsanderson/excel_printer.git
adamsanderson (author)
Tue Jun 02 22:50:42 -0700 2009
commit  6ea5a6fd32f74c7de180597394e0dd0a6b13b848
tree    1d8843aa367b13b0354c51ead6fd54afec985c57
parent  2469bf37f5db97fd9192c143289b483ae3c1011e
README.markdown

ExcelPrinter

This is a little RubyProf report printer for generating simple flat profiling reports in Excel's XLS file format.

Installing

ExcelPrinter is distributed as a rubygem:

gem install excel_printer

Usage

This is just a standard report printer, you can drop it in anywhere that you would use a report printer in ruby-prof:

require 'rubygems'
require 'ruby-prof'
require 'excel_printer'

result = RubyProf.profile do
  # Your code here
end

printer = ExcelPrinter::FlatExcelPrinter.new(result)
printer.print('report.xls')

See the examples for more information.

Why?

I got tired of having to remember sort -n -r -k 2. Theoretically you could then filter, and such in Excel, OpenOffice, etc.

Anyways, it's kind of neat.

Adam Sanderson, netghost@gmail.com