github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

adamsanderson / excel_printer

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

RubyProf report printer that generates Excel XLS files — Read more

  cancel

http://endofline.wordpress.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Updating readme with a plea for forking! 
adamsanderson (author)
Tue Jun 02 22:59:10 -0700 2009
commit  a579025386340b1223fa6ff6599022783b2286d5
tree    8107557b2d9169a1b060809258d5c68644cd7bd2
parent  6ea5a6fd32f74c7de180597394e0dd0a6b13b848
excel_printer /
name age
history
message
file .gitignore Loading commit data...
file README.markdown
file Rakefile
file VERSION.yml
directory examples/
file excel_printer.gemspec
directory lib/
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

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server