1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

vm_method.c: add new ruby::method-cache-clear dtrace probe

* vm_method.c (rb_clear_method_cache_by_class): fire
  ruby::method-cache-clear probe on global or klass-level method cache
  clear [Bug #9190]
* probes.d (provider ruby): new dtrace probe
* doc/dtrace_probes.rdoc: docs for new probe
* test/dtrace/test_method_cache.rb: test for new probe

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tmm1 2013-12-09 22:50:44 +00:00
parent 4f7c10f06f
commit 4092574257
5 changed files with 61 additions and 1 deletions

View file

@ -169,4 +169,10 @@ with when they are fired and the arguments they take:
[ruby:::gc-sweep-end();]
Fired at the end of a sweep phase.
[ruby:::method-cache-clear(class, sourcefile, lineno);]
Fired when the method cache is cleared.
class is the classname being cleared, or "global" (string)
sourcefile the file being parsed (string)
lineno the line number where the source ended (int)