Skip to content

Instantly share code, notes, and snippets.

@hendricius
Created December 10, 2013 12:23
Show Gist options
  • Save hendricius/7889801 to your computer and use it in GitHub Desktop.
Save hendricius/7889801 to your computer and use it in GitHub Desktop.
def create_page_adgroup(page)
RubyProf.start
AdgroupGenerator.new(extraction: self).create_page_adgroup(page)
result = RubyProf.stop
printer = RubyProf::MultiPrinter.new(result)
printer.print(:path => Rails.root + "/tmp", :profile => "profile")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment