Browser Profiler plugin
Plugin details
Documentation
ruby script/plugin install svn://rubyforge.org/var/svn/browser-prof
Simple usage:
------------------
http://localhost:3000/some/action?browser_profile!
If you add the browser_profile! param to any URL, it will append the profiling output to the bottom of the html file.
What profiling you ask? Well, it needs ruby-prof, which is an awesome library here: http://ruby-prof.rubyforge.org/
We used the ruby convention of bang (!) parameter to imply its modifies itself, the html body.
Walk through your own app while profiling to find issues locally, or even after deployment to your production machines.
Dont leave this stuff on in real production, obviously. :)
Advanced Usage:
---------------------
Often in Rails on post operations, you redirect after. So how do you see the profiling output of a post-redirect operation?
http://localhost:3000/some/post_redirect?file_profile!
Add the file_profile!, and it will output the results to file specified in RAILS_ROOT/log/profile_out.html .
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: hardway, 9 months ago

