This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Jun 02 22:50:42 -0700 2009 | |
| |
README.markdown | Tue Jun 02 22:59:10 -0700 2009 | |
| |
Rakefile | Tue Jun 02 22:50:42 -0700 2009 | |
| |
VERSION.yml | Tue Jun 02 22:39:57 -0700 2009 | |
| |
examples/ | Tue Jun 02 22:39:44 -0700 2009 | |
| |
excel_printer.gemspec | Tue Jun 02 22:50:42 -0700 2009 | |
| |
lib/ | Tue Jun 02 22:39:44 -0700 2009 |
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.
Fork Me!
This was just a little exploration of mine, it could be the starting point for something really neat that you might do. Possible ideas include:
- Adding formulas that show min/max of stats and maybe the standard deviation
- Better formatting, perhaps fade the insignificant resusults, or put the outliers in red
- Use FlatExcelPrinter as a starting point and make a more details report, like the ruby-prof graph reports
Adam Sanderson, netghost@gmail.com







