# tmp/profiler.rb require "ruby-prof" profile = RubyProf.profile do search_params = { engine: "google", q: "roller blades", location: "Austin, United States", google_domain: "google.com", hl: "en", gl: "us", num: "500", device: "desktop", tbm: "shop", tbs: "p_ord:rv", file_path: "tmp/roller-blades.html" } Search.new(search_params).parse! end printer = RubyProf::FlatPrinter.new(profile) printer.print($stdout, min_percent: 2)