Created
January 13, 2020 18:09
-
-
Save creadone/bf6e11dcd52db2cba2eadd083c670a19 to your computer and use it in GitHub Desktop.
Trace caller method
This file contains 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
class Record < ApplicationRecord | |
TracePoint.trace(:call) do |tp| | |
pp [tp.method_id, tp.lineno, tp.path] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment