Skip to content

Instantly share code, notes, and snippets.

@RoryMacDonald
Last active August 29, 2015 14:02
Show Gist options
  • Save RoryMacDonald/184bdd281fc4fdfaa483 to your computer and use it in GitHub Desktop.
Save RoryMacDonald/184bdd281fc4fdfaa483 to your computer and use it in GitHub Desktop.
Put this at the top of your boot.rb file in a Rails application to see the files being loaded on boot
require 'benchmark'
def require(file)
puts Benchmark.measure("") {
super
}.format("%t require #{file}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment