ruby-changes:66216
From: Yusuke <ko1@a...>
Date: Mon, 17 May 2021 08:50:38 +0900 (JST)
Subject: [ruby-changes:66216] 167cff6a5d (master): NEWS.md: mention lib/objspace/trace.rb [Feature #17762]
https://git.ruby-lang.org/ruby.git/commit/?id=167cff6a5d From 167cff6a5d5241e2929392682cc3a68ece3b0caf Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Mon, 17 May 2021 08:49:53 +0900 Subject: NEWS.md: mention lib/objspace/trace.rb [Feature #17762] --- NEWS.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/NEWS.md b/NEWS.md index a41cf0b..e5b251d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -140,6 +140,12 @@ Excluding feature bug fixes. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L140 ## Miscellaneous changes +* lib/objspace/trace.rb is added, which is a tool for tracing the object + allocation. Just by requiring this file, tracing is started *immediately*. + Just by `Kernel#p`, you can investigate where an object was created. + Note that just requiring this file brings a large performance overhead. + This is only for debugging purpose. Do not use this in production. + [Feature #17762] [Bug #4443]: https://bugs.ruby-lang.org/issues/4443 [Feature #12194]: https://bugs.ruby-lang.org/issues/12194 @@ -153,3 +159,4 @@ Excluding feature bug fixes. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L159 [Bug #17423]: https://bugs.ruby-lang.org/issues/17423 [Feature #17479]: https://bugs.ruby-lang.org/issues/17479 [Feature #17744]: https://bugs.ruby-lang.org/issues/17744 +[Feature #17762]: https://bugs.ruby-lang.org/issues/17762 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/