From 4092574257645118e98224318b89cf80fd18a144 Mon Sep 17 00:00:00 2001 From: tmm1 Date: Mon, 9 Dec 2013 22:50:44 +0000 Subject: 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 --- probes.d | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'probes.d') diff --git a/probes.d b/probes.d index dd7a7bfcd3..dc20d30172 100644 --- a/probes.d +++ b/probes.d @@ -214,6 +214,17 @@ provider ruby { Fired at the end of a sweep phase. */ probe gc__sweep__end(); + + /* + ruby:::method-cache-clear(class, filename, lineno); + + This probe is fired when the method cache is cleared. + + * `class` the name of the class or "global" (a string) + * `filename` the file name where the cache is _being cleared_ (a string) + * `lineno` the line number where the cache is _being cleared_ (an int) + */ + probe method__cache__clear(const char *class, const char *filename, int lineno); }; #pragma D attributes Stable/Evolving/Common provider ruby provider -- cgit v1.2.1