This repository has been archived by the owner on Jul 25, 2022. It is now read-only.
forked from ruby/ruby
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TracePoint for basic operation redefinition.
This infrequent event can have an outsized performance impact by eliminating a lot of the optimization that exists in the Ruby interpreter. In order to know when these sorts of things happen, this patch adds a trace point that will fire when a basic operation is redefined. The event data can be accessed by calling #basic_operation_redefined, which returns a hash of the class being modified and the basic operation that's been redefined. This patch may also be useful for JIT compilers that want to speculate on basic operation definitions. (cherry picked from commit 3aac74c)
- Loading branch information
Matthew Gaudet
committed
Mar 3, 2017
1 parent
6593ce1
commit c5c64fb
Showing
4 changed files
with
93 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
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