public
Description: Provides action/template profiling
Clone URL: git://github.com/booss/merb-profile.git
name age message
file .gitignore Mon Mar 10 17:19:00 -0700 2008 updated README [booss]
file LICENSE Mon Mar 10 17:11:40 -0700 2008 initial commit [booss]
file README Mon Mar 10 17:19:00 -0700 2008 updated README [booss]
file Rakefile Mon Mar 10 17:11:40 -0700 2008 initial commit [booss]
file TODO Mon Mar 10 17:11:40 -0700 2008 initial commit [booss]
directory lib/ Mon Mar 10 17:38:14 -0700 2008 fixed profile_action [booss]
directory spec/ Mon Mar 10 17:11:40 -0700 2008 initial commit [booss]
README
merb-profile
============

A plugin for the Merb framework that provides action / template profiling

Example
=======

class MyController < Merb::Controller
  profile_action :index

  def index
    render
  end

  def list
    profile "big query" do
      @result = MyModel.big_query
    end

    profile "list render" do
      render
    end
  end

  def clear
    clear_profiling
  end

  def results
    render_profiling
  end
end