rack-mini-profiler

https://github.com/miniprofiler/rack-mini-profiler

Ruby

Profiler for your development and production Ruby rack apps.

Rack::MiniProfiler#get_profile_script

get_profile_script returns script to be injected inside current html page
By default, profile_script is appended to the end of all html requests automatically.
Calling get_profile_script cancels automatic append for the current page
Use it when:
* you have disabled auto append behaviour throught :auto_inject => false flag
* you do not want script to be automatically appended for the current page. You can also call cancel_auto_inject

Source | Google | Stack overflow

Edit

git clone [email protected]:miniprofiler/rack-mini-profiler.git

cd rack-mini-profiler

open lib/mini_profiler.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rack--MiniProfiler-get_profile_script-for-pr


# Commit to git

git add lib/mini_profiler.rbgit commit -m "better docs for Rack::MiniProfiler#get_profile_script"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Rack--MiniProfiler-get_profile_script-for-pr

hub pull-request


# Celebrate!