Created
September 6, 2020 00:31
-
-
Save r7kamura/a9b70b4ef44492e88619660e18ee28e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Kernel | |
alias_method :original_require, :require | |
def require(path) | |
time = ::Time.now | |
original_require(path).tap do | |
puts "%3.6f\t#{path}" % (Time.now - time) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment