Created
October 31, 2022 11:10
-
-
Save rwehresmann/17d63a60aeeac28506f400d1e5166959 to your computer and use it in GitHub Desktop.
Enable ruby tracing of method calls
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
| tracer = TracePoint.new(:c_call) do |tp| p [tp.lineno, tp.event, tp.defined_class, tp.method_id] end | |
| tracer.enable { Time.now.to_json } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment