grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
Gitlab::Sherlock::LineProfiler#profile
Profiles the given block.
Example:
profiler = LineProfiler.new
retval, samples = profiler.profile do
"cats are amazing"
end
retval # => "cats are amazing"
samples # => [#<Gitlab::Sherlock::FileSample ...>, ...]
Returns an Array containing the block's return value and an Array of
FileSample objects.Edit
git clone [email protected]:intridea/grape.git
cd grape
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--Sherlock--LineProfiler-profile-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::Sherlock::LineProfiler#profile"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--Sherlock--LineProfiler-profile-for-pr
hub pull-request
# Celebrate!