Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rack::Profile lets you easily profile your Rack application

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 rack-profile.gemspec
README.rdoc

Rack::Profile

Assists in profiling your rack application.

Installation

# install
$ gem install rack-profile

# add a use line to your builder
require 'rack/profile'
Rack::Builder.new do
  use Rack::Profile, :html => '/tmp/profile.html'
  run MyApp.new
end

# can specify any of three output types
use Rack::Profile, :html => 'profile.html', :text => 'profile.txt', :tree => 'profile.prof'

Notes

Each request will overwrite any previous request's profile output. This is sufficient for my current needs, but I welcome patches to deal with this more gracefully.

Copyright

Copyright © 2009 David Dollar. See LICENSE for details.

Something went wrong with that request. Please try again.