Adds profiling in Ruby.
Adds documentation for profile.